pub struct BigSparseAccumulator { /* private fields */ }Expand description
A sparse k-mer accumulator for large set of k-mers.
Implementations§
Source§impl BigSparseAccumulator
impl BigSparseAccumulator
Sourcepub fn new(k: usize, buffer_size: usize) -> BigSparseAccumulator
pub fn new(k: usize, buffer_size: usize) -> BigSparseAccumulator
Create a new sparse k-mer accumulator, buffering buffer_size k-mers between compactions.
Sourcepub fn kmer_frequencies(&mut self) -> impl Iterator<Item = (Kmer, usize)> + '_
pub fn kmer_frequencies(&mut self) -> impl Iterator<Item = (Kmer, usize)> + '_
Get a k-mer frequency iterator over the accumulator.
Auto Trait Implementations§
impl Freeze for BigSparseAccumulator
impl RefUnwindSafe for BigSparseAccumulator
impl Send for BigSparseAccumulator
impl Sync for BigSparseAccumulator
impl Unpin for BigSparseAccumulator
impl UnwindSafe for BigSparseAccumulator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more