Struct bio::pattern_matching::kmp::KMP [] [src]

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

KMP algorithm.

Methods

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

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

Create a new instance for a given pattern.

fn find_all<'b, I: IntoTextIterator<'b>>(&'b self, text: I) -> Matches<'b, I::IntoIter>

Find all matches of pattern in a given text. Matches are returned as iterator over start positions.