Struct bio::alignment::sparse::SparseAlignmentResult
source · pub struct SparseAlignmentResult {
pub path: Vec<usize>,
pub score: u32,
pub dp_vector: Vec<(u32, i32)>,
}
Expand description
Result of a sparse alignment
Fields§
§path: Vec<usize>
LCSk++ path, represented as vector of indices into the input matches vector.
score: u32
§dp_vector: Vec<(u32, i32)>
Trait Implementations§
source§impl Clone for SparseAlignmentResult
impl Clone for SparseAlignmentResult
source§fn clone(&self) -> SparseAlignmentResult
fn clone(&self) -> SparseAlignmentResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SparseAlignmentResult
impl Debug for SparseAlignmentResult
source§impl Default for SparseAlignmentResult
impl Default for SparseAlignmentResult
source§fn default() -> SparseAlignmentResult
fn default() -> SparseAlignmentResult
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SparseAlignmentResult
impl<'de> Deserialize<'de> for SparseAlignmentResult
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for SparseAlignmentResult
impl Hash for SparseAlignmentResult
source§impl Ord for SparseAlignmentResult
impl Ord for SparseAlignmentResult
source§fn cmp(&self, other: &SparseAlignmentResult) -> Ordering
fn cmp(&self, other: &SparseAlignmentResult) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SparseAlignmentResult> for SparseAlignmentResult
impl PartialEq<SparseAlignmentResult> for SparseAlignmentResult
source§fn eq(&self, other: &SparseAlignmentResult) -> bool
fn eq(&self, other: &SparseAlignmentResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SparseAlignmentResult> for SparseAlignmentResult
impl PartialOrd<SparseAlignmentResult> for SparseAlignmentResult
source§fn partial_cmp(&self, other: &SparseAlignmentResult) -> Option<Ordering>
fn partial_cmp(&self, other: &SparseAlignmentResult) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for SparseAlignmentResult
impl Serialize for SparseAlignmentResult
impl Eq for SparseAlignmentResult
impl StructuralEq for SparseAlignmentResult
impl StructuralPartialEq for SparseAlignmentResult
Auto Trait Implementations§
impl RefUnwindSafe for SparseAlignmentResult
impl Send for SparseAlignmentResult
impl Sync for SparseAlignmentResult
impl Unpin for SparseAlignmentResult
impl UnwindSafe for SparseAlignmentResult
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.