[][src]Struct debruijn::kmer::VarIntKmer

pub struct VarIntKmer<T: PrimInt + FromPrimitive + IntHelp, KS: KmerSize> {
    pub storage: T,
    pub phantom: PhantomData<KS>,
}

A fixed-length Kmer sequence that may not fill the bits of T

side: L R bases: 0 0 0 A C G T T bits: H ........ L bit : 14 12 10 8 6 4 2 0

sorting the integer will give a lexicographic sorting of the corresponding string. kmers that don't fill storage are always aligned to the least signifcant bits

Fields

storage: Tphantom: PhantomData<KS>

Implementations

impl<T: PrimInt + FromPrimitive + Hash + IntHelp, KS: KmerSize> VarIntKmer<T, KS>[src]

pub fn top_mask(n_bases: usize) -> T[src]

pub fn bottom_mask(n_bases: usize) -> T[src]

Trait Implementations

impl<T: Clone + PrimInt + FromPrimitive + IntHelp, KS: Clone + KmerSize> Clone for VarIntKmer<T, KS>[src]

impl<T: Copy + PrimInt + FromPrimitive + IntHelp, KS: Copy + KmerSize> Copy for VarIntKmer<T, KS>[src]

impl<T: PrimInt + FromPrimitive + Hash + IntHelp, KS: KmerSize> Debug for VarIntKmer<T, KS>[src]

impl<'de, T: PrimInt + FromPrimitive + IntHelp, KS: KmerSize> Deserialize<'de> for VarIntKmer<T, KS> where
    T: Deserialize<'de>, 
[src]

impl<T: Eq + PrimInt + FromPrimitive + IntHelp, KS: Eq + KmerSize> Eq for VarIntKmer<T, KS>[src]

impl<T: Hash + PrimInt + FromPrimitive + IntHelp, KS: Hash + KmerSize> Hash for VarIntKmer<T, KS>[src]

impl<T: PrimInt + FromPrimitive + Hash + IntHelp, KS: KmerSize> Kmer for VarIntKmer<T, KS>[src]

fn extend_left(&self, v: u8) -> Self[src]

Shift the base v into the left end of the kmer

impl<T: PrimInt + FromPrimitive + Hash + IntHelp, KS: KmerSize> Mer for VarIntKmer<T, KS>[src]

fn get(&self, pos: usize) -> u8[src]

Get the letter at the given position.

fn set_slice_mut(&mut self, pos: usize, n_bases: usize, value: u64)[src]

Set a slice of bases in the kmer, using the packed representation in value. Sets n_bases, starting at pos. Incoming bases must always be packed into the upper-most bits of the value.

fn rc(&self) -> Self[src]

Return the reverse complement of this kmer

impl<T: Ord + PrimInt + FromPrimitive + IntHelp, KS: Ord + KmerSize> Ord for VarIntKmer<T, KS>[src]

impl<T: PartialEq + PrimInt + FromPrimitive + IntHelp, KS: PartialEq + KmerSize> PartialEq<VarIntKmer<T, KS>> for VarIntKmer<T, KS>[src]

impl<T: PartialOrd + PrimInt + FromPrimitive + IntHelp, KS: PartialOrd + KmerSize> PartialOrd<VarIntKmer<T, KS>> for VarIntKmer<T, KS>[src]

impl<T: PrimInt + FromPrimitive + IntHelp, KS: KmerSize> Serialize for VarIntKmer<T, KS> where
    T: Serialize
[src]

impl<T: PrimInt + FromPrimitive + IntHelp, KS: KmerSize> StructuralEq for VarIntKmer<T, KS>[src]

impl<T: PrimInt + FromPrimitive + IntHelp, KS: KmerSize> StructuralPartialEq for VarIntKmer<T, KS>[src]

Auto Trait Implementations

impl<T, KS> RefUnwindSafe for VarIntKmer<T, KS> where
    KS: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, KS> Send for VarIntKmer<T, KS> where
    KS: Send,
    T: Send

impl<T, KS> Sync for VarIntKmer<T, KS> where
    KS: Sync,
    T: Sync

impl<T, KS> Unpin for VarIntKmer<T, KS> where
    KS: Unpin,
    T: Unpin

impl<T, KS> UnwindSafe for VarIntKmer<T, KS> where
    KS: UnwindSafe,
    T: 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.