camel_case_with_options

Function camel_case_with_options 

Source
pub fn camel_case_with_options(input: &str, opts: &Options<'_>) -> String
Expand description

Converts the input string to camel case with the specified options.

    let opts = stringcase::Options{
      separate_before_non_alphabets: true,
      separate_after_non_alphabets: true,
      separators: "",
      keep: "",
    };
    let camel = stringcase::camel_case_with_options("foo_bar_100_baz", &opts);
    assert_eq!(camel, "fooBar100Baz");