Trait str_utils::EndsWithMultiple[][src]

pub trait EndsWithMultiple {
    fn ends_with_multiple<S: AsRef<[u8]>>(&self, bs: &[S]) -> Option<usize>;
}

To extend types which implement AsRef<[u8]> to have a ends_with_multiple method.

Required methods

fn ends_with_multiple<S: AsRef<[u8]>>(&self, bs: &[S]) -> Option<usize>[src]

Returns Some(usize) if one of the given string slices case-sensitively matches a suffix of this string slice.

Loading content...

Implementors

impl<T: AsRef<[u8]>> EndsWithMultiple for T[src]

Loading content...