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

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

Implementations

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

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

Provide short description of format entry (just the tag name).

pub fn inner(&self) -> &bcf_fmt_t[src]

pub fn inner_mut(&mut self) -> &mut bcf_fmt_t[src]

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

Get format data as integers.

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<BufferBacked<'b, Vec<&'b [f32]>, B>>[src]

Get format data as floats.

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 string(self) -> Result<BufferBacked<'b, Vec<&'b [u8]>, B>>[src]

Get format data as byte slices. To obtain the values strings, use std::str::from_utf8.

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 Format<'a, B>[src]

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

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

Auto Trait Implementations

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

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

impl<'a, B> !UnwindSafe for Format<'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.