pub trait ToBytes {
    const N: usize;

    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

Implementations on Foreign Types

Implementors