[−][src]Struct debruijn::vmer::Lmer
Store a variable-length DNA sequence in a packed 2-bit encoding, up 92bp in length The length of the sequence is stored in the lower 8 bits of storage
Trait Implementations
impl<A: Array<Item = u64> + Copy + Eq + Ord + Hash> Mer for Lmer<A>
[src]
fn len(&self) -> usize
[src]
The length of the DNA string
fn get(&self, pos: usize) -> u8
[src]
Get the base at position pos
fn set_mut(&mut self, pos: usize, val: u8)
[src]
Return a new Lmer with position pos set to base val
fn set_slice_mut(&mut self, pos: usize, n_bases: usize, value: u64)
[src]
fn rc(&self) -> Self
[src]
ⓘImportant traits for MerIter<'a, M>fn iter<'a>(&'a self) -> MerIter<'a, Self>
[src]
Iterate over the bases in the sequence
impl<A: Array<Item = u64> + Copy + Eq + Ord + Hash> Vmer for Lmer<A>
[src]
fn max_len() -> usize
[src]
fn new(len: usize) -> Lmer<A>
[src]
Initialize an blank Lmer of length len. Will initially represent all A's.
fn get_kmer<K: Kmer>(&self, pos: usize) -> K
[src]
Get the kmer starting at position pos
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<A: PartialEq + Array> PartialEq<Lmer<A>> for Lmer<A>
[src]
impl<A: Clone + Array> Clone for Lmer<A>
[src]
fn clone(&self) -> Lmer<A>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<A: Ord + Array> Ord for Lmer<A>
[src]
fn cmp(&self, other: &Lmer<A>) -> 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<A: Eq + Array> Eq for Lmer<A>
[src]
impl<A: PartialOrd + Array> PartialOrd<Lmer<A>> for Lmer<A>
[src]
fn partial_cmp(&self, other: &Lmer<A>) -> Option<Ordering>
[src]
fn lt(&self, other: &Lmer<A>) -> bool
[src]
fn le(&self, other: &Lmer<A>) -> bool
[src]
fn gt(&self, other: &Lmer<A>) -> bool
[src]
fn ge(&self, other: &Lmer<A>) -> bool
[src]
impl<A: Copy + Array> Copy for Lmer<A>
[src]
impl<A: Array<Item = u64> + Copy + Eq + Ord + Hash> Debug for Lmer<A>
[src]
impl<A: Hash + Array> Hash for Lmer<A>
[src]
fn hash<__HA: Hasher>(&self, state: &mut __HA)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<A: Array> Serialize for Lmer<A> where
A: Serialize,
[src]
A: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de, A: Array> Deserialize<'de> for Lmer<A> where
A: Deserialize<'de>,
[src]
A: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,