Trait StrExt

Source
pub trait StrExt: AsRef<str> {
    // Provided methods
    fn strip_suffix_ignore_ascii_case(&self, suffix: &str) -> Option<&str> { ... }
    fn ends_with_ignore_ascii_case(&self, suffix: &str) -> bool { ... }
}
Expand description

Extension trait to provide .strip_suffix_ignore_ascii_case() etc.

Provided Methods§

Source

fn strip_suffix_ignore_ascii_case(&self, suffix: &str) -> Option<&str>

Like str.strip_suffix() but ASCII-case-insensitive

Source

fn ends_with_ignore_ascii_case(&self, suffix: &str) -> bool

Like str.ends_with() but ASCII-case-insensitive

Implementations on Foreign Types§

Source§

impl StrExt for str

Implementors§