Struct seqalign::op::IndexedOperation
[−]
[src]
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.
Methods
impl<'a, O> IndexedOperation<O> where
O: Debug, [src]
O: Debug,
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: Debug> Debug for IndexedOperation<O> where
O: Debug, [src]
O: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<O: Eq> Eq for IndexedOperation<O> where
O: Debug, [src]
O: Debug,
impl<O: PartialEq> PartialEq for IndexedOperation<O> where
O: Debug, [src]
O: Debug,
fn eq(&self, __arg_0: &IndexedOperation<O>) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &IndexedOperation<O>) -> bool[src]
This method tests for !=.
Auto Trait Implementations
impl<O> Send for IndexedOperation<O> where
O: Send,
O: Send,
impl<O> Sync for IndexedOperation<O> where
O: Sync,
O: Sync,