Trait WriteSane

Source
pub trait WriteSane: SaneData {
    // Required method
    fn to_le_bytes(elem: Self) -> Vec<u8> ;
}
Expand description

To be able to write SANE data we need to be able to convert an element to a byte sequence

Required Methods§

Source

fn to_le_bytes(elem: Self) -> Vec<u8>

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 WriteSane for f32

Source§

impl WriteSane for f64

Source§

impl WriteSane for i8

Source§

impl WriteSane for i32

Source§

impl WriteSane for i64

Source§

impl WriteSane for u8

Source§

impl WriteSane for u32

Source§

impl WriteSane for u64

Implementors§