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§
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.