[−][src]Struct rust_htslib::bcf::record::Info
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,
B: Unpin,
impl<'a, B> !UnwindSafe for Info<'a, B>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,