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<'_>
impl BaseModificationState<'_>
pub fn buffer_next_mods(&mut self) -> Result<usize>
Sourcepub fn recorded<'a>(&self) -> &'a [i32]
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.
Sourcepub fn query_type<'a>(&self, code: i32) -> Result<BaseModificationMetadata>
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§
Auto Trait Implementations§
impl<'a> Freeze for BaseModificationState<'a>
impl<'a> RefUnwindSafe for BaseModificationState<'a>
impl<'a> !Send for BaseModificationState<'a>
impl<'a> !Sync for BaseModificationState<'a>
impl<'a> Unpin for BaseModificationState<'a>
impl<'a> UnwindSafe for BaseModificationState<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more