devela::_dep::stringzilla

Trait Matcher

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 ;
}
Available on crate feature dep_stringzilla only.

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

Implementors§

§

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