| 2431 | } |
| 2432 | |
| 2433 | pub trait Matcher<'a> { |
| 2434 | fn find(&self, haystack: &'a [u8]) -> Option<usize>; |
| 2435 | fn needle_length(&self) -> usize; |
| 2436 | fn skip_length(&self, include_overlaps: bool, is_reverse: bool) -> usize; |
| 2437 | } |
| 2438 | |
| 2439 | pub enum MatcherType<'a> { |
| 2440 | Find(&'a [u8]), |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…