pub trait FindSubstring<T> {
// Required method
fn find_substring(&self, substr: T) -> Option<usize>;
}
Expand description
Look for a substring in self
Required Methods§
Sourcefn find_substring(&self, substr: T) -> Option<usize>
fn find_substring(&self, substr: T) -> Option<usize>
Returns the byte position of the substring if it is found