#[repr(C)]pub struct KmerArray {
pub data: *mut u64,
pub len: usize,
}Expand description
Extract all canonical k-mer values from a contig
Matches C++ CKmer behavior:
- Scans through contig building rolling k-mers
- Resets on non-ACGT bases (> 3)
- Returns canonical representation of each k-mer
§Safety
- Caller must ensure contig_data points to valid memory of contig_len bytes
- Returned array must be freed with ragc_free_kmer_array()
Fields§
§data: *mut u64Array of k-mer values (canonical)
len: usizeNumber of k-mers
Auto Trait Implementations§
impl Freeze for KmerArray
impl RefUnwindSafe for KmerArray
impl !Send for KmerArray
impl !Sync for KmerArray
impl Unpin for KmerArray
impl UnwindSafe for KmerArray
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more