Skip to main content

camel

Macro camel 

Source
macro_rules! camel {
    ($ident:expr => ident) => { ... };
    ($s:expr) => { ... };
}
Expand description

Converts a string or ident to camelCase.

  • camel!("hello_world")"helloWorld" (String)
  • camel!(ident => ident) → camelCase syn::Ident