rust_htslib::bam::record

Struct BaseModificationState

Source
pub struct BaseModificationState<'a> { /* private fields */ }
Expand description

struct containing the internal state required to access the base modifications for a bam::Record

Implementations§

Source§

impl BaseModificationState<'_>

Source

pub fn buffer_next_mods(&mut self) -> Result<usize>

Source

pub fn recorded<'a>(&self) -> &'a [i32]

Return an array containing the modification codes listed for this record. Positive values are ascii character codes (eg m), negative values are chEBI codes.

Source

pub fn query_type<'a>(&self, code: i32) -> Result<BaseModificationMetadata>

Return metadata for the specified character code indicating the strand the base modification was called on, whether the tag uses implicit mode and the ascii code for the canonical base. If there are multiple modifications with the same code this will return the data for the first mod. See https://github.com/samtools/htslib/issues/1635

Trait Implementations§

Source§

impl Drop for BaseModificationState<'_>

Source§

fn drop<'a>(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T