valust_utils::casing

Function to_title

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

Converts a string to Title.

Alias for to_case(Case::Title).

Title case strings are delimited by spaces. Only the leading character of each word is uppercase.