[][src]Enum bam::record::tags::TagValue

pub enum TagValue<'a> {
    Char(u8),
    Int(i64IntegerType),
    Float(f32),
    String(&'a [u8]StringType),
    IntArray(IntArrayView<'a>),
    FloatArray(FloatArrayView<'a>),
}

Enum with all possible tag values.

Variants

  • Char - contains a one-byte character,
  • Int(i64, IntegerType) - contains an integer in i64 format to be able to store both i32 and u32. Enum IntegerType specifies initial integer size.
  • Float - contains a float,
  • String(&[u8], StringType) - contains a string as bytes and a type of the string - String or Hex.
  • IntArray - contains a view over an integer array, which allows to get an element at a specific index and iterate over all values,
  • FloatArray - contains a view over a float array.

Variants

Char(u8)
Float(f32)
IntArray(IntArrayView<'a>)
FloatArray(FloatArrayView<'a>)

Methods

impl<'a> TagValue<'a>[src]

pub fn write_sam<W: Write>(&self, f: &mut W) -> Result<()>[src]

Write the tag value in a sam format.

Auto Trait Implementations

impl<'a> Send for TagValue<'a>

impl<'a> Sync for TagValue<'a>

impl<'a> Unpin for TagValue<'a>

impl<'a> UnwindSafe for TagValue<'a>

impl<'a> RefUnwindSafe for TagValue<'a>

Blanket Implementations

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.

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

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

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