pub enum Kind {
Match,
Insertion,
Deletion,
Skip,
SoftClip,
HardClip,
Pad,
SequenceMatch,
SequenceMismatch,
}
Expand description
An alignment record CIGAR operation kind.
Variants§
Match
An alignment match (M
).
Insertion
An insertion into the reference (I
).
Deletion
A deletion from the reference (D
).
Skip
A skipped region from the reference (N
).
SoftClip
A soft clip (S
).
HardClip
A hard clip (H
).
Pad
Padding (P
).
SequenceMatch
A sequence match (=
).
SequenceMismatch
A sequence mismatch (X
).
Implementations§
source§impl Kind
impl Kind
sourcepub fn consumes_read(&self) -> bool
pub fn consumes_read(&self) -> bool
Returns whether the operation kind causes the alignment to consume the read.
§Examples
use noodles_sam::alignment::record::cigar::op::Kind;
assert!(Kind::Match.consumes_read());
assert!(Kind::Insertion.consumes_read());
assert!(!Kind::Deletion.consumes_read());
sourcepub fn consumes_reference(&self) -> bool
pub fn consumes_reference(&self) -> bool
Returns whether the operation kind causes the alignment to consume the reference.
§Examples
use noodles_sam::alignment::record::cigar::op::Kind;
assert!(Kind::Match.consumes_reference());
assert!(!Kind::Insertion.consumes_reference());
assert!(Kind::Deletion.consumes_reference());
Trait Implementations§
source§impl PartialEq for Kind
impl PartialEq for Kind
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
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 Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.