pub trait StrExtensions {
    // Required methods
    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§

source

fn to_ascii_lowercase_cow(&self) -> Cow<'_, str>

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

source

fn is_ascii_lowercase(&self) -> bool

Returns whether or not this str is already ASCII lowercase.

Implementations on Foreign Types§

source§

impl StrExtensions for str

Implementors§