Function snake_to_camel

Source
pub fn snake_to_camel(name: &str, upper_case_camel: bool) -> String
Expand description

Converts a snake_case string to a camelCase string.

§Arguments

  • name - A string slice that holds the snake_case variable name to be converted.
  • to_lower_camel - A boolean indicating whether the output should be in lowerCamelCase (true) or UpperCamelCase (false).

§Returns

  • A String containing the camelCase representation of the input string.