pub fn to_camel_case(non_camelized_string: &str) -> String
Expand description

Converts a &str to camelCase String

    use inflector::cases::camelcase::to_camel_case;
    let mock_string: &str = "fooBar";
    let expected_string: String = "fooBar".to_string();
    let asserted_string: String = to_camel_case(mock_string);
    assert!(asserted_string == expected_string);
    use inflector::cases::camelcase::to_camel_case;
    let mock_string: &str = "FOO_BAR";
    let expected_string: String = "fooBar".to_string();
    let asserted_string: String = to_camel_case(mock_string);
    assert!(asserted_string == expected_string);
    use inflector::cases::camelcase::to_camel_case;
    let mock_string: &str = "Foo Bar";
    let expected_string: String = "fooBar".to_string();
    let asserted_string: String = to_camel_case(mock_string);
    assert!(asserted_string == expected_string);
    use inflector::cases::camelcase::to_camel_case;
    let mock_string: &str = "foo_bar";
    let expected_string: String = "fooBar".to_string();
    let asserted_string: String = to_camel_case(mock_string);
    assert!(asserted_string == expected_string);
    use inflector::cases::camelcase::to_camel_case;
    let mock_string: &str = "Foo bar";
    let expected_string: String = "fooBar".to_string();
    let asserted_string: String = to_camel_case(mock_string);
    assert!(asserted_string == expected_string);
    use inflector::cases::camelcase::to_camel_case;
    let mock_string: &str = "foo-bar";
    let expected_string: String = "fooBar".to_string();
    let asserted_string: String = to_camel_case(mock_string);
    assert!(asserted_string == expected_string);
    use inflector::cases::camelcase::to_camel_case;
    let mock_string: &str = "FooBar";
    let expected_string: String = "fooBar".to_string();
    let asserted_string: String = to_camel_case(mock_string);
    assert!(asserted_string == expected_string);
    use inflector::cases::camelcase::to_camel_case;
    let mock_string: &str = "FooBar3";
    let expected_string: String = "fooBar3".to_string();
    let asserted_string: String = to_camel_case(mock_string);
    assert!(asserted_string == expected_string);
    use inflector::cases::camelcase::to_camel_case;
    let mock_string: &str = "Foo-Bar";
    let expected_string: String = "fooBar".to_string();
    let asserted_string: String = to_camel_case(mock_string);
    assert!(asserted_string == expected_string);