Struct bio::pattern_matching::horspool::Horspool [] [src]

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

Algorithm of Horspool.

Methods

impl<'a> Horspool<'a>
[src]

fn new(pattern: TextSlice<'a>) -> Self

Create a new instance for a given pattern.

fn find_all<'b>(&'b self, text: TextSlice<'b>) -> Matches

Find all matches with a given text. Matches are returned as an iterator over start positions.