train_case

Function train_case 

Source
pub fn train_case(input: &str) -> String
Expand description

Converts the input string to train case.

It treats the end of a sequence of non-alphabetical characters as a word boundary, but not the beginning.

    let train = stringcase::train_case("fooBar123Baz");
    assert_eq!(train, "Foo-Bar123-Baz");