string_morph is a library of string case transformations with an emphasis on accuracy and performance. The case conversions are available as functions as well as traits on String types.
useconverter::{convert_case, CapitalizeType};/// Convert a string to a title cased string
////// # Examples
////// ```
/// assert_eq!("Lorem Ipsum Dolor", string_morph::to_title_case("lorem-ipsum-dolor"))
/// ```
pubfnto_title_case(input:&str)-> String{convert_case(input.to_string(),CapitalizeType::FirstLetterOfWord,true,'')}