pub trait FmIndex {
// Required methods
fn exact_match(&self, pattern: &[Nuc]) -> AlignResult<Vec<usize>>;
fn len(&self) -> usize;
fn bwt(&self, pos: usize) -> AlignResult<NucPair>;
fn rank(&self, c: Nuc, pos: usize) -> AlignResult<usize>;
fn select(&self, c: Nuc, k: usize) -> AlignResult<usize>;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
FM-index trait for generic operations
Required Methods§
Sourcefn exact_match(&self, pattern: &[Nuc]) -> AlignResult<Vec<usize>>
fn exact_match(&self, pattern: &[Nuc]) -> AlignResult<Vec<usize>>
Exact match search - return all positions matching the pattern
Sourcefn bwt(&self, pos: usize) -> AlignResult<NucPair>
fn bwt(&self, pos: usize) -> AlignResult<NucPair>
Get forward BWT character at position