[][src]Trait starts_ends_with_caseless::EndsWithCaseless

pub trait EndsWithCaseless {
    fn ends_with_caseless_ascii<S: AsRef<str>>(&self, s: S) -> bool;
fn ends_with_caseless<S: AsRef<str>>(&self, s: S) -> bool; }

To extend types which implement AsRef<str> to have ends_with_caseless_ascii and ends_with_caseless methods.

Required methods

fn ends_with_caseless_ascii<S: AsRef<str>>(&self, s: S) -> bool

Returns true if the given string slice case-insensitively (only ignoring ASCII case) matches a suffix of this string slice .

fn ends_with_caseless<S: AsRef<str>>(&self, s: S) -> bool

Returns true if the given string slice case-insensitively (using case-folding) matches a suffix of this string slice .

Loading content...

Implementors

impl<T: AsRef<str>> EndsWithCaseless for T[src]

Loading content...