[][src]Struct seqalign::Alignment

pub struct Alignment<'a, M, T> where
    M: Measure<T>,
    T: Eq
{ /* fields omitted */ }

Edit distance cost matrix.

Implementations

impl<'a, M, T> Alignment<'a, M, T> where
    M: Measure<T>,
    T: Eq
[src]

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

Get the edit distance.

pub fn edit_script(&self) -> Vec<IndexedOperation<M::Operation>>[src]

Return the script of edit operations to rewrite the source sequence to the target sequence. If there are multiple possible edit scripts, this method will return one of the possible edit scripts. If you want to retrieve all possible edit scripts, use the edit_scripts method.

pub fn edit_scripts(&self) -> HashSet<Vec<IndexedOperation<M::Operation>>>[src]

Return all the edit scripts to rewrite the source sequence to the target sequence. If you want just one edit script, use the edit_script method instead.

pub fn cost_matrix(&self) -> &Vec<Vec<usize>>[src]

Get the cost matrix.

pub fn seq_pair(&self) -> &SeqPair<T>[src]

Get the sequence pair associated with this cost matrix.

Auto Trait Implementations

impl<'a, M, T> RefUnwindSafe for Alignment<'a, M, T> where
    M: RefUnwindSafe,
    T: RefUnwindSafe

impl<'a, M, T> Send for Alignment<'a, M, T> where
    M: Sync,
    T: Sync

impl<'a, M, T> Sync for Alignment<'a, M, T> where
    M: Sync,
    T: Sync

impl<'a, M, T> Unpin for Alignment<'a, M, T>

impl<'a, M, T> UnwindSafe for Alignment<'a, M, T> where
    M: RefUnwindSafe,
    T: RefUnwindSafe

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