Trait memmem::Searcher
[−]
[src]
pub trait Searcher { fn search_in(&self, haystack: &[u8]) -> Option<usize>; }
A trait that searches for patterns in byte-strings.
Required Methods
fn search_in(&self, haystack: &[u8]) -> Option<usize>
Search for something in a byte-string. Returns the starting index of the match, if found.
Implementors
impl<'a> Searcher for TwoWaySearcher<'a>