Trait str_utils::StartsWithMultiple [−][src]
pub trait StartsWithMultiple { fn starts_with_multiple<S: AsRef<[u8]>>(&self, bs: &[S]) -> Option<usize>; }
To extend types which implement AsRef<[u8]>
to have a starts_with_multiple
method.
Required methods
fn starts_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 prefix of this string slice.
Implementors
impl<T: AsRef<[u8]>> StartsWithMultiple for T
[src]
impl<T: AsRef<[u8]>> StartsWithMultiple for T
[src]