pub trait CaseInsensitiveStr<'a> {
// Required methods
fn eq_ci<S: AsRef<str>>(&self, other: S) -> bool;
fn cmp_ci<S: AsRef<str>>(&self, other: S) -> Ordering;
fn in_ci<S: AsRef<str>>(&self, haystack: &[S]) -> bool;
fn starts_with_ci<S: AsRef<str>>(&self, prefix: S) -> bool;
fn ends_with_ci<S: AsRef<str>>(&self, suffix: S) -> bool;
fn strip_prefix_ci<S: AsRef<str>>(&'a self, prefix: S) -> Option<&'a str>;
fn strip_suffix_ci<S: AsRef<str>>(&'a self, prefix: S) -> Option<&'a str>;
}
Required Methods§
fn eq_ci<S: AsRef<str>>(&self, other: S) -> bool
fn cmp_ci<S: AsRef<str>>(&self, other: S) -> Ordering
fn in_ci<S: AsRef<str>>(&self, haystack: &[S]) -> bool
fn starts_with_ci<S: AsRef<str>>(&self, prefix: S) -> bool
fn ends_with_ci<S: AsRef<str>>(&self, suffix: S) -> bool
fn strip_prefix_ci<S: AsRef<str>>(&'a self, prefix: S) -> Option<&'a str>
fn strip_suffix_ci<S: AsRef<str>>(&'a self, prefix: S) -> Option<&'a str>
Object Safety§
This trait is not object safe.