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§

source

fn eq_ci<S: AsRef<str>>(&self, other: S) -> bool

source

fn cmp_ci<S: AsRef<str>>(&self, other: S) -> Ordering

source

fn in_ci<S: AsRef<str>>(&self, haystack: &[S]) -> bool

source

fn starts_with_ci<S: AsRef<str>>(&self, prefix: S) -> bool

source

fn ends_with_ci<S: AsRef<str>>(&self, suffix: S) -> bool

source

fn strip_prefix_ci<S: AsRef<str>>(&'a self, prefix: S) -> Option<&'a str>

source

fn strip_suffix_ci<S: AsRef<str>>(&'a self, prefix: S) -> Option<&'a str>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, T: AsRef<str>> CaseInsensitiveStr<'a> for T