Skip to main content

Flat

Trait Flat 

Source
pub trait Flat: Pod + Zeroable {
    // Required methods
    fn to_le_bytes(&self) -> Cow<'_, [u8]>;
    fn from_le_bytes(bytes: &[u8]) -> Self;
}

Required Methods§

Source

fn to_le_bytes(&self) -> Cow<'_, [u8]>

Source

fn from_le_bytes(bytes: &[u8]) -> 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.

Implementors§