[][src]Struct debruijn::graph::Node

pub struct Node<'a, K: Kmer + 'a, D: 'a> {
    pub node_id: usize,
    pub graph: &'a DebruijnGraph<K, D>,
}

Unbranched sequence in the DeBruijn graph

Fields

node_id: usizegraph: &'a DebruijnGraph<K, D>

Methods

impl<'a, K: Kmer, D: Debug> Node<'a, K, D>[src]

pub fn len(&self) -> usize[src]

Length of the sequence of this node

pub fn sequence(&self) -> DnaStringSlice<'a>[src]

Sequence of the node

pub fn data(&self) -> &'a D[src]

Reference to auxiliarly data associated with the node

pub fn exts(&self) -> Exts[src]

Extension bases from this node

pub fn l_edges(&self) -> SmallVec<[(usize, Dir, bool); 4]>[src]

Edges leaving the left side of the node in the format

pub fn r_edges(&self) -> SmallVec<[(usize, Dir, bool); 4]>[src]

Edges leaving the right side of the node in the format

pub fn edges(&self, dir: Dir) -> SmallVec<[(usize, Dir, bool); 4]>[src]

Edges leaving the 'dir' side of the node in the format

Trait Implementations

impl<'a, K: Kmer, D> Debug for Node<'a, K, D> where
    D: Debug
[src]

Auto Trait Implementations

impl<'a, K, D> Send for Node<'a, K, D> where
    D: Sync,
    K: Sync

impl<'a, K, D> Sync for Node<'a, K, D> where
    D: Sync,
    K: Sync

Blanket Implementations

impl<T> From for T[src]

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

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.