macro_rules! snake {
($ident:expr => ident) => { ... };
($s:expr) => { ... };
}Expand description
Converts a string or ident to snake_case.
snake!("HelloWorld")→"hello_world"(String)snake!(ident => ident)→ snake_casesyn::Ident
macro_rules! snake {
($ident:expr => ident) => { ... };
($s:expr) => { ... };
}Converts a string or ident to snake_case.
snake!("HelloWorld") → "hello_world" (String)snake!(ident => ident) → snake_case syn::Ident