Skip to main content

EndsWithMultiple

Trait EndsWithMultiple 

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

To extend [u8] and str to have a ends_with_multiple method.

Required Methods§

Source

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

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl EndsWithMultiple for [u8]

Source§

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

Source§

impl EndsWithMultiple for str

Source§

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

Implementors§