[][src]Trait starts_ends_with_caseless::EndsWithCaselessMultiple

pub trait EndsWithCaselessMultiple {
    fn ends_with_caseless_ascii_multiple<S: AsRef<str>>(
        &self,
        s: &[S]
    ) -> Option<usize>;
fn ends_with_caseless_multiple<S: AsRef<str>>(&self, s: S) -> Option<usize>; }

To extend types which implement AsRef<str> to have starts_with_caseless_ascii_multiple and starts_with_caseless_multiple methods.

Required methods

fn ends_with_caseless_ascii_multiple<S: AsRef<str>>(
    &self,
    s: &[S]
) -> Option<usize>

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

fn ends_with_caseless_multiple<S: AsRef<str>>(&self, s: S) -> Option<usize>

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

Loading content...

Implementors

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

Loading content...