Trait FromLEBytes

Source
pub trait FromLEBytes<const N: usize> {
    // Required method
    fn from_le_bytes(bytes: [u8; N]) -> Self;
}
Expand description

Converts to the value from a constant number of bytes

Required Methods§

Source

fn from_le_bytes(bytes: [u8; N]) -> Self

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.

Implementations on Foreign Types§

Source§

impl FromLEBytes<1> for i8

Source§

fn from_le_bytes(bytes: [u8; 1]) -> Self

Source§

impl FromLEBytes<1> for u8

Source§

fn from_le_bytes(bytes: [u8; 1]) -> Self

Source§

impl FromLEBytes<2> for i16

Source§

fn from_le_bytes(bytes: [u8; 2]) -> Self

Source§

impl FromLEBytes<2> for u16

Source§

fn from_le_bytes(bytes: [u8; 2]) -> Self

Source§

impl FromLEBytes<2> for [i8; 2]

Source§

fn from_le_bytes(bytes: [u8; 2]) -> Self

Source§

impl FromLEBytes<2> for [u8; 2]

Source§

fn from_le_bytes(bytes: [u8; 2]) -> Self

Source§

impl FromLEBytes<4> for f32

Source§

fn from_le_bytes(bytes: [u8; 4]) -> Self

Source§

impl FromLEBytes<4> for i32

Source§

fn from_le_bytes(bytes: [u8; 4]) -> Self

Source§

impl FromLEBytes<4> for u32

Source§

fn from_le_bytes(bytes: [u8; 4]) -> Self

Source§

impl FromLEBytes<4> for [i16; 2]

Source§

fn from_le_bytes(bytes: [u8; 4]) -> Self

Source§

impl FromLEBytes<4> for [u16; 2]

Source§

fn from_le_bytes(bytes: [u8; 4]) -> Self

Source§

impl FromLEBytes<8> for f64

Source§

fn from_le_bytes(bytes: [u8; 8]) -> Self

Source§

impl FromLEBytes<8> for i64

Source§

fn from_le_bytes(bytes: [u8; 8]) -> Self

Source§

impl FromLEBytes<8> for u64

Source§

fn from_le_bytes(bytes: [u8; 8]) -> Self

Source§

impl FromLEBytes<8> for [f32; 2]

Source§

fn from_le_bytes(bytes: [u8; 8]) -> Self

Source§

impl FromLEBytes<8> for [i32; 2]

Source§

fn from_le_bytes(bytes: [u8; 8]) -> Self

Source§

impl FromLEBytes<8> for [u32; 2]

Source§

fn from_le_bytes(bytes: [u8; 8]) -> Self

Source§

impl FromLEBytes<12> for [u32; 3]

Source§

fn from_le_bytes(bytes: [u8; 12]) -> Self

Source§

impl FromLEBytes<16> for i128

Source§

fn from_le_bytes(bytes: [u8; 16]) -> Self

Source§

impl FromLEBytes<16> for u128

Source§

fn from_le_bytes(bytes: [u8; 16]) -> Self

Source§

impl FromLEBytes<16> for [f64; 2]

Source§

fn from_le_bytes(bytes: [u8; 16]) -> Self

Source§

impl FromLEBytes<16> for [i64; 2]

Source§

fn from_le_bytes(bytes: [u8; 16]) -> Self

Source§

impl FromLEBytes<16> for [u32; 4]

Source§

fn from_le_bytes(bytes: [u8; 16]) -> Self

Source§

impl FromLEBytes<16> for [u64; 2]

Source§

fn from_le_bytes(bytes: [u8; 16]) -> Self

Source§

impl FromLEBytes<20> for [u32; 5]

Source§

fn from_le_bytes(bytes: [u8; 20]) -> Self

Source§

impl FromLEBytes<24> for [u32; 6]

Source§

fn from_le_bytes(bytes: [u8; 24]) -> Self

Source§

impl FromLEBytes<24> for [u64; 3]

Source§

fn from_le_bytes(bytes: [u8; 24]) -> Self

Source§

impl FromLEBytes<28> for [u32; 7]

Source§

fn from_le_bytes(bytes: [u8; 28]) -> Self

Source§

impl FromLEBytes<32> for [i128; 2]

Source§

fn from_le_bytes(bytes: [u8; 32]) -> Self

Source§

impl FromLEBytes<32> for [u32; 8]

Source§

fn from_le_bytes(bytes: [u8; 32]) -> Self

Source§

impl FromLEBytes<32> for [u64; 4]

Source§

fn from_le_bytes(bytes: [u8; 32]) -> Self

Source§

impl FromLEBytes<32> for [u128; 2]

Source§

fn from_le_bytes(bytes: [u8; 32]) -> Self

Source§

impl FromLEBytes<36> for [u32; 9]

Source§

fn from_le_bytes(bytes: [u8; 36]) -> Self

Source§

impl FromLEBytes<40> for [u32; 10]

Source§

fn from_le_bytes(bytes: [u8; 40]) -> Self

Source§

impl FromLEBytes<40> for [u64; 5]

Source§

fn from_le_bytes(bytes: [u8; 40]) -> Self

Source§

impl FromLEBytes<44> for [u32; 11]

Source§

fn from_le_bytes(bytes: [u8; 44]) -> Self

Source§

impl FromLEBytes<48> for [u32; 12]

Source§

fn from_le_bytes(bytes: [u8; 48]) -> Self

Source§

impl FromLEBytes<48> for [u64; 6]

Source§

fn from_le_bytes(bytes: [u8; 48]) -> Self

Source§

impl FromLEBytes<48> for [u128; 3]

Source§

fn from_le_bytes(bytes: [u8; 48]) -> Self

Source§

impl FromLEBytes<56> for [u64; 7]

Source§

fn from_le_bytes(bytes: [u8; 56]) -> Self

Source§

impl FromLEBytes<64> for [u64; 8]

Source§

fn from_le_bytes(bytes: [u8; 64]) -> Self

Source§

impl FromLEBytes<64> for [u128; 4]

Source§

fn from_le_bytes(bytes: [u8; 64]) -> Self

Source§

impl FromLEBytes<72> for [u64; 9]

Source§

fn from_le_bytes(bytes: [u8; 72]) -> Self

Source§

impl FromLEBytes<80> for [u64; 10]

Source§

fn from_le_bytes(bytes: [u8; 80]) -> Self

Source§

impl FromLEBytes<80> for [u128; 5]

Source§

fn from_le_bytes(bytes: [u8; 80]) -> Self

Source§

impl FromLEBytes<88> for [u64; 11]

Source§

fn from_le_bytes(bytes: [u8; 88]) -> Self

Source§

impl FromLEBytes<96> for [u64; 12]

Source§

fn from_le_bytes(bytes: [u8; 96]) -> Self

Source§

impl FromLEBytes<96> for [u128; 6]

Source§

fn from_le_bytes(bytes: [u8; 96]) -> Self

Source§

impl FromLEBytes<112> for [u128; 7]

Source§

fn from_le_bytes(bytes: [u8; 112]) -> Self

Source§

impl FromLEBytes<128> for [u128; 8]

Source§

fn from_le_bytes(bytes: [u8; 128]) -> Self

Source§

impl FromLEBytes<144> for [u128; 9]

Source§

fn from_le_bytes(bytes: [u8; 144]) -> Self

Source§

impl FromLEBytes<160> for [u128; 10]

Source§

fn from_le_bytes(bytes: [u8; 160]) -> Self

Source§

impl FromLEBytes<176> for [u128; 11]

Source§

fn from_le_bytes(bytes: [u8; 176]) -> Self

Source§

impl FromLEBytes<192> for [u128; 12]

Source§

fn from_le_bytes(bytes: [u8; 192]) -> Self

Implementors§