[][src]Struct debruijn::DnaBytes

pub struct DnaBytes(pub Vec<u8>);

A newtype wrapper around a Vec<u8> with implementations

Trait Implementations

impl Clone for DnaBytes[src]

impl Debug for DnaBytes[src]

impl Eq for DnaBytes[src]

impl Mer for DnaBytes[src]

fn set_mut(&mut self, pos: usize, val: u8)[src]

Set base at pos to 2-bit encoded base val

fn set_slice_mut(&mut self, _pos: usize, _nbases: usize, _value: u64)[src]

Set nbases positions in the sequence, starting at pos. Values must be packed into the upper-most bits of value.

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

Return a new object containing the reverse complement of the sequence

impl Ord for DnaBytes[src]

impl PartialEq<DnaBytes> for DnaBytes[src]

impl PartialOrd<DnaBytes> for DnaBytes[src]

impl StructuralEq for DnaBytes[src]

impl StructuralPartialEq for DnaBytes[src]

impl Vmer for DnaBytes[src]

fn new(len: usize) -> Self[src]

Create a new sequence with length len, initialized to all A's

fn max_len() -> usize[src]

Maximum sequence length that can be stored in this type

fn get_kmer<K: Kmer>(&self, pos: usize) -> K[src]

Efficiently extract a Kmer from the sequence

Auto Trait Implementations

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> 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.