pub trait FindSlice<T> {
// Required method
fn find_slice(&self, substr: T) -> Option<Range<usize>>;
}
Expand description
Look for a slice in self
Required Methods§
sourcefn find_slice(&self, substr: T) -> Option<Range<usize>>
fn find_slice(&self, substr: T) -> Option<Range<usize>>
Returns the offset of the slice if it is found
Implementations on Foreign Types§
Implementors§
impl<'i, S> FindSlice<S> for &'i BStr
impl<'i, S> FindSlice<S> for &'i Bytes
impl<I, E, T> FindSlice<T> for Recoverable<I, E>
Available on crate feature
unstable-recover
only.