[−][src]Enum bam::record::cigar::Operation
Cigar operation.
Variants
Methods
impl Operation
[src]
pub fn from_symbol(symbol: u8) -> Result<Operation, String>
[src]
Convert u8
symbol (for example b'M'
) into Operation.
To convert a number 0-8
into Operation use Operation::from(number)
.
pub fn to_byte(self) -> u8
[src]
Convert Operation into u8
symbol (for example b'M'
).
To convert Operation into a number 0-8
use operation as u8
.
pub fn consumes_query(self) -> bool
[src]
Checks if the operation consumes query. For example, M
consumes query, while D
does not.
pub fn consumes_ref(self) -> bool
[src]
Checks if the operation consumes reference.
For example, M
consumes reference, while I
does not.
pub fn is_match(self) -> bool
[src]
Returns true
if the operation consumes both query and reference (M, = or X).
pub fn is_insertion(self) -> bool
[src]
Returns true
if the operation consumes only reference (I or S).
pub fn is_deletion(self) -> bool
[src]
Returns true
if the operation consumes only query (D or N).
pub fn is_hard_clipping(self) -> bool
[src]
Returns true
if the operation does not consume query nor reference (H or P).
Trait Implementations
impl From<u32> for Operation
[src]
impl Clone for Operation
[src]
impl Copy for Operation
[src]
impl Eq for Operation
[src]
impl PartialEq<Operation> for Operation
[src]
impl Debug for Operation
[src]
impl Display for Operation
[src]
Auto Trait Implementations
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
impl RefUnwindSafe for Operation
Blanket Implementations
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,