pub trait FindSlice<T> {
// Required method
fn find_slice(&self, substr: T) -> Option<usize>;
}
Expand description
Look for a slice in self
Required Methods§
sourcefn find_slice(&self, substr: T) -> Option<usize>
fn find_slice(&self, substr: T) -> Option<usize>
Returns the offset of the slice if it is found