[][src]Struct debruijn::kmer::IntKmer

pub struct IntKmer<T: PrimInt + FromPrimitive + IntHelp> {
    pub storage: T,
}

A Kmer sequence with a statically know K. K will fill the underlying integer type.

Fields

storage: T

Implementations

impl<T: PrimInt + FromPrimitive + Hash + IntHelp> IntKmer<T>[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> Clone for IntKmer<T>[src]

impl<T: Copy + PrimInt + FromPrimitive + IntHelp> Copy for IntKmer<T>[src]

impl<T: PrimInt + FromPrimitive + Hash + IntHelp> Debug for IntKmer<T>[src]

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

impl<T: Eq + PrimInt + FromPrimitive + IntHelp> Eq for IntKmer<T>[src]

impl<T: Hash + PrimInt + FromPrimitive + IntHelp> Hash for IntKmer<T>[src]

impl<T: PrimInt + FromPrimitive + Hash + IntHelp> Kmer for IntKmer<T>[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> Mer for IntKmer<T>[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. 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> Ord for IntKmer<T>[src]

impl<T: PartialEq + PrimInt + FromPrimitive + IntHelp> PartialEq<IntKmer<T>> for IntKmer<T>[src]

impl<T: PartialOrd + PrimInt + FromPrimitive + IntHelp> PartialOrd<IntKmer<T>> for IntKmer<T>[src]

impl<T: PrimInt + FromPrimitive + IntHelp> Serialize for IntKmer<T> where
    T: Serialize
[src]

impl<T: PrimInt + FromPrimitive + IntHelp> StructuralEq for IntKmer<T>[src]

impl<T: PrimInt + FromPrimitive + IntHelp> StructuralPartialEq for IntKmer<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for IntKmer<T> where
    T: RefUnwindSafe

impl<T> Send for IntKmer<T> where
    T: Send

impl<T> Sync for IntKmer<T> where
    T: Sync

impl<T> Unpin for IntKmer<T> where
    T: Unpin

impl<T> UnwindSafe for IntKmer<T> where
    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.