rust_htslib::bam::record

Trait AuxArrayElement

Source
pub trait AuxArrayElement: Copy {
    // Required method
    fn from_le_bytes(bytes: &[u8]) -> Option<Self>;
}
Expand description

Types that can be used in aux arrays.

Required Methods§

Source

fn from_le_bytes(bytes: &[u8]) -> Option<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl AuxArrayElement for f32

Source§

fn from_le_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl AuxArrayElement for i8

Source§

fn from_le_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl AuxArrayElement for i16

Source§

fn from_le_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl AuxArrayElement for i32

Source§

fn from_le_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl AuxArrayElement for u8

Source§

fn from_le_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl AuxArrayElement for u16

Source§

fn from_le_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl AuxArrayElement for u32

Source§

fn from_le_bytes(bytes: &[u8]) -> Option<Self>

Implementors§