[−][src]Struct seqalign::Alignment
Edit distance cost matrix.
Implementations
impl<'a, M, T> Alignment<'a, M, T> where
M: Measure<T>,
T: Eq,
[src]
M: Measure<T>,
T: Eq,
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,
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, M, T> Send for Alignment<'a, M, T> where
M: Sync,
T: Sync,
M: Sync,
T: Sync,
impl<'a, M, T> Sync for Alignment<'a, M, T> where
M: Sync,
T: Sync,
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,
M: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,