to_camel

Function to_camel 

Source
pub fn to_camel(string: &str) -> String
Expand description

Return a version of the string in camelCase format.

§Arguments

  • string - The string to get a camelCase version of.

§Examples

let result = case_switcher::to_camel("sample_string");
assert_eq!(result, "sampleString");