valust_utils::casing

Function to_train

Source
pub fn to_train(s: impl AsRef<str>) -> String
Expand description

Converts a string to Train.

Alias for to_case(Case::Train).

Train case strings are delimited by hyphens -. All characters are lowercase except for the leading character of each word.