Struct rust_htslib::bam::record::CigarStringView[][src]

pub struct CigarStringView { /* fields omitted */ }

Implementations

Construct a new CigarStringView from a CigarString at a position

Get (exclusive) end position of alignment.

Get number of bases softclipped at the beginning of the alignment.

Get number of bases softclipped at the end of the alignment.

Get number of bases hardclipped at the beginning of the alignment.

Get number of bases hardclipped at the end of the alignment.

For a given position in the reference, get corresponding position within read. If reference position is outside of the read alignment, return None.

Arguments

  • ref_pos - the reference position
  • include_softclips - if true, softclips will be considered as matches or mismatches
  • include_dels - if true, positions within deletions will be considered (first reference matching read position after deletion will be returned)

transfer ownership of the Cigar out of the CigarView

Methods from Deref<Target = CigarString>

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

The resulting type after dereferencing.

Dereferences the value.

Formats the value using the given formatter. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. 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

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)

recently added

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.