[][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: Clone + Array> Clone 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<'de, A: Array> Deserialize<'de> for Lmer<A> where
    A: Deserialize<'de>, 
[src]

impl<A: Eq + Array> Eq for Lmer<A>[src]

impl<A: Hash + Array> Hash for Lmer<A>[src]

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

impl<A: Ord + Array> Ord for Lmer<A>[src]

impl<A: PartialEq + Array> PartialEq<Lmer<A>> for Lmer<A>[src]

impl<A: PartialOrd + Array> PartialOrd<Lmer<A>> for Lmer<A>[src]

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

impl<A: Array> StructuralEq for Lmer<A>[src]

impl<A: Array> StructuralPartialEq for Lmer<A>[src]

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

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

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

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

impl<T> From<T> for T[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.