Skip to main content

casefold

Function casefold 

Source
pub fn casefold<'a>(input: &'a str, mode: CaseFoldMode) -> Cow<'a, str>
Expand description

Fold a string using simple case folding.

Returns Cow::Borrowed if the string is already fully case-folded (no characters changed).