noodles_sam::alignment::record::data::field::value::array

Enum Array

Source
pub enum Array<'a> {
    Int8(Box<dyn Values<'a, i8> + 'a>),
    UInt8(Box<dyn Values<'a, u8> + 'a>),
    Int16(Box<dyn Values<'a, i16> + 'a>),
    UInt16(Box<dyn Values<'a, u16> + 'a>),
    Int32(Box<dyn Values<'a, i32> + 'a>),
    UInt32(Box<dyn Values<'a, u32> + 'a>),
    Float(Box<dyn Values<'a, f32> + 'a>),
}
Expand description

An alignment record data field array value.

Variants§

§

Int8(Box<dyn Values<'a, i8> + 'a>)

An 8-bit integer array (B:c).

§

UInt8(Box<dyn Values<'a, u8> + 'a>)

An 8-bit unsigned integer array (B:C).

§

Int16(Box<dyn Values<'a, i16> + 'a>)

A 16-bit integer array (B:s).

§

UInt16(Box<dyn Values<'a, u16> + 'a>)

A 16-bit unsigned integer array (B:S).

§

Int32(Box<dyn Values<'a, i32> + 'a>)

A 32-bit integer array (B:i).

§

UInt32(Box<dyn Values<'a, u32> + 'a>)

A 32-bit unsigned integer array (B:I).

§

Float(Box<dyn Values<'a, f32> + 'a>)

A single-precision floating-point array (B:f).

Implementations§

Source§

impl<'a> Array<'a>

Source

pub fn subtype(&self) -> Subtype

Returns the array value type.

Trait Implementations§

Source§

impl<'a> Debug for Array<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> From<&'a Array> for Array<'a>

Source§

fn from(array_buf: &'a Array) -> Self

Converts to this type from the input type.
Source§

impl<'a> TryFrom<Array<'a>> for Array

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(array: Array<'a>) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl<'a> Freeze for Array<'a>

§

impl<'a> !RefUnwindSafe for Array<'a>

§

impl<'a> !Send for Array<'a>

§

impl<'a> !Sync for Array<'a>

§

impl<'a> Unpin for Array<'a>

§

impl<'a> !UnwindSafe for Array<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.