Trait ReadSane

Source
pub trait ReadSane: SaneData {
    // Required method
    fn from_le_bytes(bytes: Vec<u8>) -> Vec<Self>;
}
Expand description

To be able read SANE-encoded data we need to be able convert the Vec<u8> of little-endian data to the corresponding vector of values

Required Methods§

Source

fn from_le_bytes(bytes: Vec<u8>) -> Vec<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 ReadSane for f32

Source§

impl ReadSane for f64

Source§

impl ReadSane for i8

Source§

impl ReadSane for i32

Source§

impl ReadSane for i64

Source§

impl ReadSane for u8

Source§

impl ReadSane for u32

Source§

impl ReadSane for u64

Implementors§