EqMultiple

Trait EqMultiple 

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

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

Required Methods§

Source

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

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl EqMultiple for str

Source§

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

Source§

impl EqMultiple for [u8]

Source§

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

Implementors§