pub struct Info<'a, B: BorrowMut<Buffer> + Borrow<Buffer>> { /* private fields */ }
Expand description
Info tag representation.
Implementations§
Source§impl<'a, 'b, B: BorrowMut<Buffer> + Borrow<Buffer> + 'b> Info<'a, B>
impl<'a, 'b, B: BorrowMut<Buffer> + Borrow<Buffer> + 'b> Info<'a, B>
Sourcepub fn integer(self) -> Result<Option<BufferBacked<'b, &'b [i32], B>>>
pub fn integer(self) -> Result<Option<BufferBacked<'b, &'b [i32], B>>>
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.
Sourcepub fn float(self) -> Result<Option<BufferBacked<'b, &'b [f32], B>>>
pub fn float(self) -> Result<Option<BufferBacked<'b, &'b [f32], B>>>
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.
Sourcepub fn string(self) -> Result<Option<BufferBacked<'b, Vec<&'b [u8]>, B>>>
pub fn string(self) -> Result<Option<BufferBacked<'b, Vec<&'b [u8]>, B>>>
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.