Trait FindSlice
pub trait FindSlice<T> {
// Required method
fn find_slice(&self, substr: T) -> Option<Range<usize>> ⓘ;
}
Available on crate feature
dep_winnow
only.Expand description
Look for a slice in self
Required Methods§
fn 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