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§
Sourcefn strip_suffix_ignore_ascii_case(&self, suffix: &str) -> Option<&str>
fn strip_suffix_ignore_ascii_case(&self, suffix: &str) -> Option<&str>
Like str.strip_suffix()
but ASCII-case-insensitive
Sourcefn ends_with_ignore_ascii_case(&self, suffix: &str) -> bool
fn ends_with_ignore_ascii_case(&self, suffix: &str) -> bool
Like str.ends_with()
but ASCII-case-insensitive