Trait cw_storage_plus::Endian
source · pub trait Endian: Sized + Copy {
type Buf: AsRef<[u8]> + AsMut<[u8]> + Into<Vec<u8>> + Default;
// Required methods
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;
}
Required Associated Types§
Required Methods§
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
Object Safety§
This trait is not object safe.