[−][src]Struct seqalign::op::IndexedOperation
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]
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]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<O: Debug> Debug for IndexedOperation<O> where
O: Debug,
[src]
O: Debug,
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<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<O: PartialEq> PartialEq<IndexedOperation<O>> for IndexedOperation<O> where
O: Debug,
[src]
O: Debug,
fn eq(&self, other: &IndexedOperation<O>) -> bool
[src]
fn ne(&self, other: &IndexedOperation<O>) -> bool
[src]
impl<O> StructuralEq for IndexedOperation<O> where
O: Debug,
[src]
O: Debug,
impl<O> StructuralPartialEq for IndexedOperation<O> where
O: Debug,
[src]
O: Debug,
Auto Trait Implementations
impl<O> RefUnwindSafe for IndexedOperation<O> where
O: RefUnwindSafe,
O: RefUnwindSafe,
impl<O> Send for IndexedOperation<O> where
O: Send,
O: Send,
impl<O> Sync for IndexedOperation<O> where
O: Sync,
O: Sync,
impl<O> Unpin for IndexedOperation<O> where
O: Unpin,
O: Unpin,
impl<O> UnwindSafe for IndexedOperation<O> where
O: UnwindSafe,
O: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,