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

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

Cigar operation.

Variants

AlnMatch

Insertion

Deletion

Skip

Soft

Hard

Padding

SeqMatch

SeqMismatch

Implementations

Convert u8 symbol (for example b'M') into Operation.

To convert a number 0-8 into Operation use Operation::from(number).

Convert Operation into u8 symbol (for example b'M').

To convert Operation into a number 0-8 use operation as u8.

Checks if the operation consumes query. For example, M consumes query, while D does not.

Checks if the operation consumes reference. For example, M consumes reference, while I does not.

Returns operation class: operations combined by their behavior (soft and insertion both consume query but not reference, so they represent the same class Insertion).

Returns true if the operation consumes both query and reference (M, = or X).

Returns true if the operation consumes only reference (I or S).

Returns true if the operation consumes only query (D or N).

Returns true if the operation does not consume query nor reference (H or P).

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.