Struct bam::record::cigar::Cigar[][src]

pub struct Cigar(_);
Expand description

A wrapper around raw Cigar.

Implementations

Creates a new empty CIGAR.

Creates a cigar from raw data.

Clears the contents but does not touch capacity.

Extends CIGAR from raw data.

Pushes a single operation to the end of the CIGAR. Does nothing if len is 0.

Extends Cigar from text representation. If an error occured, the cigar may be filled partially.

Returns a pair (length, operation) by its index.

Returns an iterator over typles (length, operation).

Cigar length.

Returns true if Cigar is empty.

Returns raw Cigar. Each u32 value represents length << 4 | operation, where operations are encoded from 0 to 8.

Calculates reference alignment length. Consider using Record::calculate_end, as the record alignment end is stored once calculated.

Calculates query length.

Shrinks inner vector.

Writes to f in a human readable format. Write * if empty.

Returns the size of the hard clipping on the left side if left_side and on the right side otherwise.

Returns the size of the soft clipping on the left side if left_side and on the right side otherwise. The function ignores any hard clipping in the process.

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

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.