pub trait Flat: Pod + Zeroable {
// Required methods
fn to_le_bytes(&self) -> Cow<'_, [u8]>;
fn from_le_bytes(bytes: &[u8]) -> Self;
}Required Methods§
fn to_le_bytes(&self) -> Cow<'_, [u8]>
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.