[][src]Struct seqalign::op::IndexedOperation

pub struct IndexedOperation<O> where
    O: Debug
{ /* fields omitted */ }

An indexed edit operation.

Indexed edit operations are a pairing of an edit operation and the sequence positions when/where the operation was applied. The indexes can be used to simplify external use of the operations. For example, if we are interested in which elements were aligned, then a subsequence of matches

  • match 1 2
  • match 3 7
  • match 4 10

Tells us that indices 1/2, 3/7, and 4/10 of the source/target sequence were aligned.

Implementations

impl<'a, O> IndexedOperation<O> where
    O: Debug
[src]

pub fn new(operation: O, source_idx: usize, target_idx: usize) -> Self[src]

pub fn operation(&self) -> &O[src]

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

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

Trait Implementations

impl<O: Clone> Clone for IndexedOperation<O> where
    O: Debug
[src]

impl<O: Debug> Debug for IndexedOperation<O> where
    O: Debug
[src]

impl<O: Eq> Eq for IndexedOperation<O> where
    O: Debug
[src]

impl<O: Hash> Hash for IndexedOperation<O> where
    O: Debug
[src]

impl<O: PartialEq> PartialEq<IndexedOperation<O>> for IndexedOperation<O> where
    O: Debug
[src]

impl<O> StructuralEq for IndexedOperation<O> where
    O: Debug
[src]

impl<O> StructuralPartialEq for IndexedOperation<O> where
    O: Debug
[src]

Auto Trait Implementations

impl<O> RefUnwindSafe for IndexedOperation<O> where
    O: RefUnwindSafe

impl<O> Send for IndexedOperation<O> where
    O: Send

impl<O> Sync for IndexedOperation<O> where
    O: Sync

impl<O> Unpin for IndexedOperation<O> where
    O: Unpin

impl<O> UnwindSafe for IndexedOperation<O> where
    O: UnwindSafe

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.