Struct hirschberg::Output
source · pub struct Output<'a, T, U> { /* private fields */ }
Expand description
Output from the Hirschberg algorithm containing an optimal global alignment and distance between two sequences.
Implementations§
source§impl<'a, T, U> Output<'a, T, U>
impl<'a, T, U> Output<'a, T, U>
sourcepub fn alignment(&self) -> &[(Option<&'a T>, Option<&'a U>)]
pub fn alignment(&self) -> &[(Option<&'a T>, Option<&'a U>)]
Returns a slice of the optimal alignment. Each item is a tuple containing
an element from sequence a
or gap (indicated by None
) at position 0, and
an element from sequence b
or gap at position 1. The ordering of the original
sequences a
and b
is preserved.
Trait Implementations§
source§impl<'a, T: PartialEq, U: PartialEq> PartialEq for Output<'a, T, U>
impl<'a, T: PartialEq, U: PartialEq> PartialEq for Output<'a, T, U>
impl<'a, T: Eq, U: Eq> Eq for Output<'a, T, U>
impl<'a, T, U> StructuralEq for Output<'a, T, U>
impl<'a, T, U> StructuralPartialEq for Output<'a, T, U>
Auto Trait Implementations§
impl<'a, T, U> RefUnwindSafe for Output<'a, T, U>where T: RefUnwindSafe, U: RefUnwindSafe,
impl<'a, T, U> Send for Output<'a, T, U>where T: Sync, U: Sync,
impl<'a, T, U> Sync for Output<'a, T, U>where T: Sync, U: Sync,
impl<'a, T, U> Unpin for Output<'a, T, U>
impl<'a, T, U> UnwindSafe for Output<'a, T, U>where T: RefUnwindSafe, U: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more