Trait stringzilla::Matcher

source ·
pub trait Matcher<'a> {
    // Required methods
    fn find(&self, haystack: &'a [u8]) -> Option<usize>;
    fn needle_length(&self) -> usize;
    fn skip_length(&self, include_overlaps: bool, is_reverse: bool) -> usize;
}

Required Methods§

source

fn find(&self, haystack: &'a [u8]) -> Option<usize>

source

fn needle_length(&self) -> usize

source

fn skip_length(&self, include_overlaps: bool, is_reverse: bool) -> usize

Implementors§

source§

impl<'a> Matcher<'a> for MatcherType<'a>