Struct bio::data_structures::qgram_index::QGramIndex[][src]

pub struct QGramIndex { /* fields omitted */ }

A classical, flexible, q-gram index implementation.

Methods

impl QGramIndex
[src]

Create a new q-gram index. The q has to be smaller than b / log2(|A|) with |A| being the alphabet size and b the number bits with the usize data type.

Create a new q-gram index, only considering q-grams that occur at most max_count times. The q has to be smaller than b / log2(|A|) with |A| being the alphabet size and b the number bits with the usize data type.

The used q.

Important traits for &'a [u8]

Return text positions with matching q-gram. Complexity O(1).

Important traits for Vec<u8>

Return matches of the given pattern. Complexity O(m + k) for pattern of length m and k being the number of matching q-grams.

Important traits for Vec<u8>

Return exact matches (substrings) of the given pattern. Complexity O(m + k) for pattern of length m and k being the number of matching q-grams.

Auto Trait Implementations

impl Send for QGramIndex

impl Sync for QGramIndex