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