pub trait ToBytes {
const N: usize;
// Required methods
fn to_be_bytes(self) -> [u8; Self::N];
fn to_le_bytes(self) -> [u8; Self::N];
fn to_ne_bytes(self) -> [u8; Self::N];
}Required Associated Constants§
Required Methods§
fn to_be_bytes(self) -> [u8; Self::N]
fn to_le_bytes(self) -> [u8; Self::N]
fn to_ne_bytes(self) -> [u8; Self::N]
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.