[−][src]Struct debruijn::DnaBytes
A newtype wrapper around a Vec<u8>
with implementations
Trait Implementations
impl Mer for DnaBytes
[src]
fn len(&self) -> usize
[src]
fn get(&self, pos: usize) -> u8
[src]
fn set_mut(&mut self, pos: usize, val: u8)
[src]
Set base at pos
to 2-bit encoded base val
fn set_slice_mut(&mut self, _pos: usize, _nbases: usize, _value: u64)
[src]
Set nbases
positions in the sequence, starting at pos
.
Values must be packed into the upper-most bits of value
.
fn rc(&self) -> Self
[src]
Return a new object containing the reverse complement of the sequence
ⓘImportant traits for MerIter<'a, M>fn iter<'a>(&'a self) -> MerIter<'a, Self>
[src]
Iterate over the bases in the sequence
impl Vmer for DnaBytes
[src]
fn new(len: usize) -> Self
[src]
Create a new sequence with length len
, initialized to all A's
fn max_len() -> usize
[src]
Maximum sequence length that can be stored in this type
fn get_kmer<K: Kmer>(&self, pos: usize) -> K
[src]
Efficiently extract a Kmer from the sequence
fn from_slice(seq: &[u8]) -> Self
[src]
Create a Vmer from a sequence of bytes
fn first_kmer<K: Kmer>(&self) -> K
[src]
Get the first Kmer from the sequence
fn last_kmer<K: Kmer>(&self) -> K
[src]
Get the last kmer in the sequence
fn both_term_kmer<K: Kmer>(&self) -> (K, K)
[src]
Get the terminal kmer of the sequence, on the both side of the sequence
fn term_kmer<K: Kmer>(&self, dir: Dir) -> K
[src]
Get the terminal kmer of the sequence, on the side of the sequence given by dir
ⓘImportant traits for KmerIter<'a, K, D>fn iter_kmers<K: Kmer>(&self) -> KmerIter<K, Self>
[src]
Iterate over the kmers in the sequence
ⓘImportant traits for KmerExtsIter<'a, K, D>fn iter_kmer_exts<K: Kmer>(&self, seq_exts: Exts) -> KmerExtsIter<K, Self>
[src]
Iterate over the kmers and their extensions, given the extensions of the whole sequence
impl PartialEq<DnaBytes> for DnaBytes
[src]
impl Clone for DnaBytes
[src]
fn clone(&self) -> DnaBytes
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Ord for DnaBytes
[src]
fn cmp(&self, other: &DnaBytes) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl Eq for DnaBytes
[src]
impl PartialOrd<DnaBytes> for DnaBytes
[src]
fn partial_cmp(&self, other: &DnaBytes) -> Option<Ordering>
[src]
fn lt(&self, other: &DnaBytes) -> bool
[src]
fn le(&self, other: &DnaBytes) -> bool
[src]
fn gt(&self, other: &DnaBytes) -> bool
[src]
fn ge(&self, other: &DnaBytes) -> bool
[src]
impl Debug for DnaBytes
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> MerImmut for T where
T: Mer + Clone,
[src]
T: Mer + Clone,
fn set(&self, pos: usize, val: u8) -> Self
[src]
fn set_slice(&self, pos: usize, nbases: usize, bits: u64) -> Self
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,