[][src]Struct rust_htslib::bcf::record::Info

pub struct Info<'a, B: BorrowMut<Buffer> + Borrow<Buffer>> { /* fields omitted */ }

Info tag representation.

Implementations

impl<'a, 'b, B: BorrowMut<Buffer> + Borrow<Buffer> + 'b> Info<'a, B>[src]

pub fn desc(&self) -> String[src]

Short description of info tag.

pub fn integer(self) -> Result<Option<BufferBacked<'b, &'b [i32], B>>>[src]

Get integers from tag. None if tag not present in record.

Import bcf::record::Numeric for missing value handling.

Attention: the returned BufferBacked which holds the data has to be kept in scope as along as the data is accessed. If parts of the data are accessed while the BufferBacked object is already dropped, you will access unallocated memory.

pub fn float(self) -> Result<Option<BufferBacked<'b, &'b [f32], B>>>[src]

Get floats from tag. None if tag not present in record.

Import bcf::record::Numeric for missing value handling.

Attention: the returned BufferBacked which holds the data has to be kept in scope as along as the data is accessed. If parts of the data are accessed while the BufferBacked object is already dropped, you will access unallocated memory.

pub fn flag(&mut self) -> Result<bool>[src]

Get flags from tag. false if not set.

pub fn string(self) -> Result<Option<BufferBacked<'b, Vec<&'b [u8]>, B>>>[src]

Get strings from tag. None if tag not present in record.

Attention: the returned BufferBacked which holds the data has to be kept in scope as along as the data is accessed. If parts of the data are accessed while the BufferBacked object is already dropped, you will access unallocated memory.

Trait Implementations

impl<'a, B: Debug + BorrowMut<Buffer> + Borrow<Buffer>> Debug for Info<'a, B>[src]

impl<'a, 'b, B: BorrowMut<Buffer> + Borrow<Buffer> + 'b> Send for Info<'a, B>[src]

impl<'a, 'b, B: BorrowMut<Buffer> + Borrow<Buffer> + 'b> Sync for Info<'a, B>[src]

Auto Trait Implementations

impl<'a, B> !RefUnwindSafe for Info<'a, B>

impl<'a, B> Unpin for Info<'a, B> where
    B: Unpin

impl<'a, B> !UnwindSafe for Info<'a, B>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.