pub trait StrExtensions {
    fn to_ascii_lowercase_cow(&self) -> Cow<'_, str>;
fn is_ascii_lowercase(&self) -> bool; }
Expand description

The trait responsible for adding methods to str.

Required methods

Works like str::to_ascii_lowercase, but returns a Cow::Borrowed when the original already is ASCII and lowercase.

Returns whether or not this str is already ASCII lowercase.

Implementations on Foreign Types

Implementors