Struct memmem::TwoWaySearcher [] [src]

pub struct TwoWaySearcher<'a> {
    // some fields omitted
}

Searches for a substring using the "two-way" algorithm of Crochemore and Perrin, D.

This implementation is basically copied from rust's standard library.

Methods

impl<'a> TwoWaySearcher<'a>

fn new<'b>(needle: &'b [u8]) -> TwoWaySearcher<'b>

Creates a new TwoWaySearcher that can be used to search for needle.

Trait Implementations

impl<'a> Searcher for TwoWaySearcher<'a>

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

Derived Implementations

impl<'a> Debug for TwoWaySearcher<'a>

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<'a> Clone for TwoWaySearcher<'a>

fn clone(&self) -> TwoWaySearcher<'a>

fn clone_from(&mut self, source: &Self)1.0.0