pub trait ByteCast: Copy {
const SIZEOF: usize;
const SIGNED: bool;
// Required methods
fn from_bytes<O: Order>(buf: &[u8]) -> Self;
fn into_bytes<O: Order>(&self, buf: &mut [u8]);
}Required Associated Constants§
Required Methods§
fn from_bytes<O: Order>(buf: &[u8]) -> Self
fn into_bytes<O: Order>(&self, buf: &mut [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.