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: Clone> Clone for IndexedOperation<O> where
O: Debug,
[src]
O: Debug,
fn clone(&self) -> IndexedOperation<O>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
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: Hash> Hash for IndexedOperation<O> where
O: Debug,
[src]
O: Debug,
fn hash<__HO: Hasher>(&self, __arg_0: &mut __HO)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
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,