[][src]Enum bam::record::cigar::Operation

pub enum Operation {
    AlnMatch,
    Insertion,
    Deletion,
    Skip,
    Soft,
    Hard,
    Padding,
    SeqMatch,
    SeqMismatch,
}

Cigar operation.

Variants

AlnMatch
Insertion
Deletion
Skip
Soft
Hard
Padding
SeqMatch
SeqMismatch

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

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]