pub trait ToLowercase<'a> {
// Required methods
fn to_lowercase_cow(self) -> Cow<'a, str>;
fn to_ascii_lowercase_cow(self) -> Cow<'a, str>;
}Available on crate feature
alloc only.Expand description
To extend str and Cow<str> to have to_lowercase_cow and to_ascii_lowercase_cow methods.
Required Methods§
Sourcefn to_lowercase_cow(self) -> Cow<'a, str>
fn to_lowercase_cow(self) -> Cow<'a, str>
Converts the string to its lowercase form (Unicode-aware), returning a Cow<str> to avoid allocation when possible.
Sourcefn to_ascii_lowercase_cow(self) -> Cow<'a, str>
fn to_ascii_lowercase_cow(self) -> Cow<'a, str>
Converts the string to its ASCII lowercase form, returning a Cow<str> to avoid allocation when possible.