Skip to main content

to_snake

Function to_snake 

Source
pub fn to_snake(ident: &str) -> String
Expand description

Convert a Rust identifier (CamelCase, SCREAMING_SNAKE, or mixed) into a snake_case module file stem.

Examples: Foofoo, HTTPServerhttp_server, MAX_SIZEmax_size, IOErrorio_error, parse_inputparse_input.