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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".