sway_types::style

Function to_snake_case

Source
pub fn to_snake_case(name: &str) -> String
Expand description

Convert an identifier into snake_case. This is a best-guess at what the name would look like if it were expressed in the correct style.