Struct memmem::TwoWaySearcher [] [src]

pub struct TwoWaySearcher<'a> { /* 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>
[src]

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

Trait Implementations

impl<'a> Clone for TwoWaySearcher<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Debug for TwoWaySearcher<'a>
[src]

Formats the value using the given formatter.

impl<'a> Searcher for TwoWaySearcher<'a>
[src]

Search for something in a byte-string. Returns the starting index of the match, if found.