Trait ToLEBytes

Source
pub trait ToLEBytes<const N: usize> {
    // Required method
    fn to_le_bytes(&self) -> [u8; N];
}
Expand description

Converts the value into a constant number of bytes

Required Methods§

Source

fn to_le_bytes(&self) -> [u8; N]

Implementations on Foreign Types§

Source§

impl ToLEBytes<1> for i8

Source§

fn to_le_bytes(&self) -> [u8; 1]

Source§

impl ToLEBytes<1> for u8

Source§

fn to_le_bytes(&self) -> [u8; 1]

Source§

impl ToLEBytes<2> for i16

Source§

fn to_le_bytes(&self) -> [u8; 2]

Source§

impl ToLEBytes<2> for u16

Source§

fn to_le_bytes(&self) -> [u8; 2]

Source§

impl ToLEBytes<2> for [i8; 2]

Source§

fn to_le_bytes(&self) -> [u8; 2]

Source§

impl ToLEBytes<2> for [u8; 2]

Source§

fn to_le_bytes(&self) -> [u8; 2]

Source§

impl ToLEBytes<4> for f32

Source§

fn to_le_bytes(&self) -> [u8; 4]

Source§

impl ToLEBytes<4> for i32

Source§

fn to_le_bytes(&self) -> [u8; 4]

Source§

impl ToLEBytes<4> for u32

Source§

fn to_le_bytes(&self) -> [u8; 4]

Source§

impl ToLEBytes<4> for [i16; 2]

Source§

fn to_le_bytes(&self) -> [u8; 4]

Source§

impl ToLEBytes<4> for [u16; 2]

Source§

fn to_le_bytes(&self) -> [u8; 4]

Source§

impl ToLEBytes<8> for f64

Source§

fn to_le_bytes(&self) -> [u8; 8]

Source§

impl ToLEBytes<8> for i64

Source§

fn to_le_bytes(&self) -> [u8; 8]

Source§

impl ToLEBytes<8> for u64

Source§

fn to_le_bytes(&self) -> [u8; 8]

Source§

impl ToLEBytes<8> for [f32; 2]

Source§

fn to_le_bytes(&self) -> [u8; 8]

Source§

impl ToLEBytes<8> for [i32; 2]

Source§

fn to_le_bytes(&self) -> [u8; 8]

Source§

impl ToLEBytes<8> for [u32; 2]

Source§

fn to_le_bytes(&self) -> [u8; 8]

Source§

impl ToLEBytes<12> for [u32; 3]

Source§

fn to_le_bytes(&self) -> [u8; 12]

Source§

impl ToLEBytes<16> for i128

Source§

fn to_le_bytes(&self) -> [u8; 16]

Source§

impl ToLEBytes<16> for u128

Source§

fn to_le_bytes(&self) -> [u8; 16]

Source§

impl ToLEBytes<16> for [f64; 2]

Source§

fn to_le_bytes(&self) -> [u8; 16]

Source§

impl ToLEBytes<16> for [i64; 2]

Source§

fn to_le_bytes(&self) -> [u8; 16]

Source§

impl ToLEBytes<16> for [u32; 4]

Source§

fn to_le_bytes(&self) -> [u8; 16]

Source§

impl ToLEBytes<16> for [u64; 2]

Source§

fn to_le_bytes(&self) -> [u8; 16]

Source§

impl ToLEBytes<20> for [u32; 5]

Source§

fn to_le_bytes(&self) -> [u8; 20]

Source§

impl ToLEBytes<24> for [u32; 6]

Source§

fn to_le_bytes(&self) -> [u8; 24]

Source§

impl ToLEBytes<24> for [u64; 3]

Source§

fn to_le_bytes(&self) -> [u8; 24]

Source§

impl ToLEBytes<28> for [u32; 7]

Source§

fn to_le_bytes(&self) -> [u8; 28]

Source§

impl ToLEBytes<32> for [i128; 2]

Source§

fn to_le_bytes(&self) -> [u8; 32]

Source§

impl ToLEBytes<32> for [u32; 8]

Source§

fn to_le_bytes(&self) -> [u8; 32]

Source§

impl ToLEBytes<32> for [u64; 4]

Source§

fn to_le_bytes(&self) -> [u8; 32]

Source§

impl ToLEBytes<32> for [u128; 2]

Source§

fn to_le_bytes(&self) -> [u8; 32]

Source§

impl ToLEBytes<36> for [u32; 9]

Source§

fn to_le_bytes(&self) -> [u8; 36]

Source§

impl ToLEBytes<40> for [u32; 10]

Source§

fn to_le_bytes(&self) -> [u8; 40]

Source§

impl ToLEBytes<40> for [u64; 5]

Source§

fn to_le_bytes(&self) -> [u8; 40]

Source§

impl ToLEBytes<44> for [u32; 11]

Source§

fn to_le_bytes(&self) -> [u8; 44]

Source§

impl ToLEBytes<48> for [u32; 12]

Source§

fn to_le_bytes(&self) -> [u8; 48]

Source§

impl ToLEBytes<48> for [u64; 6]

Source§

fn to_le_bytes(&self) -> [u8; 48]

Source§

impl ToLEBytes<48> for [u128; 3]

Source§

fn to_le_bytes(&self) -> [u8; 48]

Source§

impl ToLEBytes<56> for [u64; 7]

Source§

fn to_le_bytes(&self) -> [u8; 56]

Source§

impl ToLEBytes<64> for [u64; 8]

Source§

fn to_le_bytes(&self) -> [u8; 64]

Source§

impl ToLEBytes<64> for [u128; 4]

Source§

fn to_le_bytes(&self) -> [u8; 64]

Source§

impl ToLEBytes<72> for [u64; 9]

Source§

fn to_le_bytes(&self) -> [u8; 72]

Source§

impl ToLEBytes<80> for [u64; 10]

Source§

fn to_le_bytes(&self) -> [u8; 80]

Source§

impl ToLEBytes<80> for [u128; 5]

Source§

fn to_le_bytes(&self) -> [u8; 80]

Source§

impl ToLEBytes<88> for [u64; 11]

Source§

fn to_le_bytes(&self) -> [u8; 88]

Source§

impl ToLEBytes<96> for [u64; 12]

Source§

fn to_le_bytes(&self) -> [u8; 96]

Source§

impl ToLEBytes<96> for [u128; 6]

Source§

fn to_le_bytes(&self) -> [u8; 96]

Source§

impl ToLEBytes<112> for [u128; 7]

Source§

fn to_le_bytes(&self) -> [u8; 112]

Source§

impl ToLEBytes<128> for [u128; 8]

Source§

fn to_le_bytes(&self) -> [u8; 128]

Source§

impl ToLEBytes<144> for [u128; 9]

Source§

fn to_le_bytes(&self) -> [u8; 144]

Source§

impl ToLEBytes<160> for [u128; 10]

Source§

fn to_le_bytes(&self) -> [u8; 160]

Source§

impl ToLEBytes<176> for [u128; 11]

Source§

fn to_le_bytes(&self) -> [u8; 176]

Source§

impl ToLEBytes<192> for [u128; 12]

Source§

fn to_le_bytes(&self) -> [u8; 192]

Implementors§