to_ascii_lowercase

Function to_ascii_lowercase 

Source
fn to_ascii_lowercase(s: &str) -> Cow<'_, str>
Expand description

Returns a Cow::Borrowed if s is already ASCII lowercase, and a Cow::Owned if s had to be converted into ASCII lowercase.