Expand description
Edit distance cost matrix.
Implementations
sourceimpl<'a, M, T> Alignment<'a, M, T> where
M: Measure<T>,
T: Eq,
impl<'a, M, T> Alignment<'a, M, T> where
M: Measure<T>,
T: Eq,
sourcepub fn edit_script(&self) -> Vec<IndexedOperation<M::Operation>>
pub fn edit_script(&self) -> Vec<IndexedOperation<M::Operation>>
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.
sourcepub fn edit_scripts(&self) -> HashSet<Vec<IndexedOperation<M::Operation>>>
pub fn edit_scripts(&self) -> HashSet<Vec<IndexedOperation<M::Operation>>>
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.
sourcepub fn cost_matrix(&self) -> &Vec<Vec<usize>>
pub fn cost_matrix(&self) -> &Vec<Vec<usize>>
Get the 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more