pub struct AlignmentSummary { /* private fields */ }Expand description
Summary metadata for an alignment.
Implementations§
Source§impl AlignmentSummary
impl AlignmentSummary
Sourcepub const fn new(kind: AlignmentKind) -> Self
pub const fn new(kind: AlignmentKind) -> Self
Creates an alignment summary with no score or sequences.
Sourcepub const fn with_score(self, score: AlignmentScore) -> Self
pub const fn with_score(self, score: AlignmentScore) -> Self
Sets the alignment score.
Sourcepub fn with_sequence(self, sequence: AlignedSequence) -> Self
pub fn with_sequence(self, sequence: AlignedSequence) -> Self
Adds an aligned sequence to the summary.
Sourcepub const fn kind(&self) -> &AlignmentKind
pub const fn kind(&self) -> &AlignmentKind
Returns the alignment kind.
Sourcepub const fn score(&self) -> Option<AlignmentScore>
pub const fn score(&self) -> Option<AlignmentScore>
Returns the optional alignment score.
Sourcepub fn sequences(&self) -> &[AlignedSequence]
pub fn sequences(&self) -> &[AlignedSequence]
Returns the aligned sequences.
Sourcepub const fn sequence_count(&self) -> usize
pub const fn sequence_count(&self) -> usize
Returns the number of aligned sequences.
Trait Implementations§
Source§impl Clone for AlignmentSummary
impl Clone for AlignmentSummary
Source§fn clone(&self) -> AlignmentSummary
fn clone(&self) -> AlignmentSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AlignmentSummary
impl Debug for AlignmentSummary
Source§impl PartialEq for AlignmentSummary
impl PartialEq for AlignmentSummary
Source§fn eq(&self, other: &AlignmentSummary) -> bool
fn eq(&self, other: &AlignmentSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AlignmentSummary
Auto Trait Implementations§
impl Freeze for AlignmentSummary
impl RefUnwindSafe for AlignmentSummary
impl Send for AlignmentSummary
impl Sync for AlignmentSummary
impl Unpin for AlignmentSummary
impl UnsafeUnpin for AlignmentSummary
impl UnwindSafe for AlignmentSummary
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