Enum noodles::cram::record::feature::Feature[][src]

pub enum Feature {
    Bases(i32Vec<u8, Global>),
    Scores(i32Vec<u8, Global>),
    ReadBase(i32u8u8),
    Substitution(i32u8),
    Insertion(i32Vec<u8, Global>),
    Deletion(i32i32),
    InsertBase(i32u8),
    QualityScore(i32u8),
    ReferenceSkip(i32i32),
    SoftClip(i32Vec<u8, Global>),
    Padding(i32i32),
    HardClip(i32i32),
}
Expand description

A CRAM record feature.

Variants

Bases(i32Vec<u8, Global>)

A stretch of bases (position, bases).

Tuple Fields of Bases

0: i321: Vec<u8, Global>
Scores(i32Vec<u8, Global>)

A stretch of quality scores (position, quality scores).

Tuple Fields of Scores

0: i321: Vec<u8, Global>
ReadBase(i32u8u8)

A base-quality score pair (position, base, quality score).

Tuple Fields of ReadBase

0: i321: u82: u8
Substitution(i32u8)

A base substitution (position, code).

Tuple Fields of Substitution

0: i321: u8
Insertion(i32Vec<u8, Global>)

Inserted bases (position, bases).

Tuple Fields of Insertion

0: i321: Vec<u8, Global>
Deletion(i32i32)

A number of deleted bases (position, length).

Tuple Fields of Deletion

0: i321: i32
InsertBase(i32u8)

A single inserted base (position, base).

Tuple Fields of InsertBase

0: i321: u8
QualityScore(i32u8)

A single quality score (position, score).

Tuple Fields of QualityScore

0: i321: u8
ReferenceSkip(i32i32)

A number of skipped bases (position, length).

Tuple Fields of ReferenceSkip

0: i321: i32
SoftClip(i32Vec<u8, Global>)

Soft clipped bases (position, bases).

Tuple Fields of SoftClip

0: i321: Vec<u8, Global>
Padding(i32i32)

A number of padded bases (position, length).

Tuple Fields of Padding

0: i321: i32
HardClip(i32i32)

A number of hard clipped bases (position, length).

Tuple Fields of HardClip

0: i321: i32

Implementations

Returns the feature code.

Examples

use noodles_cram::record::{feature::Code, Feature};
let feature = Feature::InsertBase(8, b'A');
assert_eq!(feature.code(), Code::InsertBase);

Returns the feature position.

Examples

use noodles_cram::record::Feature;
let feature = Feature::InsertBase(8, b'A');
assert_eq!(feature.position(), 8);

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

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

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

Should always be Self

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)

recently added

Uses borrowed data to replace owned data, usually by cloning. 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.