[][src]Struct debruijn::vmer::Lmer

pub struct Lmer<A: Array> { /* fields omitted */ }

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

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 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_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 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]

🔬 This is a nightly-only experimental API. (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]

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_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<A: Array> Serialize for Lmer<A> where
    A: Serialize
[src]

impl<'de, A: Array> Deserialize<'de> for Lmer<A> where
    A: Deserialize<'de>, 
[src]

Auto Trait Implementations

impl<A> Send for Lmer<A> where
    A: Send

impl<A> Sync for Lmer<A> where
    A: Sync

Blanket Implementations

impl<T> MerImmut for T where
    T: Mer + Clone
[src]

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]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]