Trait cw_storage_plus::Endian[][src]

pub trait Endian: Sized + Copy {
    type Buf: AsRef<[u8]> + AsMut<[u8]> + Into<Vec<u8>> + Default;
    fn to_le_bytes(self) -> Self::Buf;
fn to_be_bytes(self) -> Self::Buf;
fn from_le_bytes(bytes: Self::Buf) -> Self;
fn from_be_bytes(bytes: Self::Buf) -> Self; }

Associated Types

Required methods

Implementations on Foreign Types

Implementors