Trait FromBEBytes

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

Converts to the value from a constant number of bytes

Required Methods§

Source

fn from_be_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 FromBEBytes<1> for i8

Source§

fn from_be_bytes(bytes: [u8; 1]) -> i8

Source§

impl FromBEBytes<1> for u8

Source§

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

Source§

impl FromBEBytes<2> for i16

Source§

fn from_be_bytes(bytes: [u8; 2]) -> i16

Source§

impl FromBEBytes<2> for u16

Source§

fn from_be_bytes(bytes: [u8; 2]) -> u16

Source§

impl FromBEBytes<2> for [i8; 2]

Source§

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

Source§

impl FromBEBytes<2> for [u8; 2]

Source§

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

Source§

impl FromBEBytes<4> for f32

Source§

fn from_be_bytes(bytes: [u8; 4]) -> f32

Source§

impl FromBEBytes<4> for i32

Source§

fn from_be_bytes(bytes: [u8; 4]) -> i32

Source§

impl FromBEBytes<4> for u32

Source§

fn from_be_bytes(bytes: [u8; 4]) -> u32

Source§

impl FromBEBytes<4> for [i16; 2]

Source§

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

Source§

impl FromBEBytes<4> for [u16; 2]

Source§

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

Source§

impl FromBEBytes<8> for f64

Source§

fn from_be_bytes(bytes: [u8; 8]) -> f64

Source§

impl FromBEBytes<8> for i64

Source§

fn from_be_bytes(bytes: [u8; 8]) -> i64

Source§

impl FromBEBytes<8> for u64

Source§

fn from_be_bytes(bytes: [u8; 8]) -> u64

Source§

impl FromBEBytes<8> for [f32; 2]

Source§

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

Source§

impl FromBEBytes<8> for [i32; 2]

Source§

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

Source§

impl FromBEBytes<8> for [u32; 2]

Source§

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

Source§

impl FromBEBytes<12> for [u32; 3]

Source§

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

Source§

impl FromBEBytes<16> for i128

Source§

fn from_be_bytes(bytes: [u8; 16]) -> i128

Source§

impl FromBEBytes<16> for u128

Source§

fn from_be_bytes(bytes: [u8; 16]) -> u128

Source§

impl FromBEBytes<16> for [f64; 2]

Source§

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

Source§

impl FromBEBytes<16> for [i64; 2]

Source§

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

Source§

impl FromBEBytes<16> for [u32; 4]

Source§

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

Source§

impl FromBEBytes<16> for [u64; 2]

Source§

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

Source§

impl FromBEBytes<20> for [u32; 5]

Source§

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

Source§

impl FromBEBytes<24> for [u32; 6]

Source§

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

Source§

impl FromBEBytes<24> for [u64; 3]

Source§

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

Source§

impl FromBEBytes<28> for [u32; 7]

Source§

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

Source§

impl FromBEBytes<32> for [i128; 2]

Source§

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

Source§

impl FromBEBytes<32> for [u32; 8]

Source§

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

Source§

impl FromBEBytes<32> for [u64; 4]

Source§

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

Source§

impl FromBEBytes<32> for [u128; 2]

Source§

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

Source§

impl FromBEBytes<36> for [u32; 9]

Source§

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

Source§

impl FromBEBytes<40> for [u32; 10]

Source§

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

Source§

impl FromBEBytes<40> for [u64; 5]

Source§

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

Source§

impl FromBEBytes<44> for [u32; 11]

Source§

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

Source§

impl FromBEBytes<48> for [u32; 12]

Source§

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

Source§

impl FromBEBytes<48> for [u64; 6]

Source§

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

Source§

impl FromBEBytes<48> for [u128; 3]

Source§

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

Source§

impl FromBEBytes<56> for [u64; 7]

Source§

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

Source§

impl FromBEBytes<64> for [u64; 8]

Source§

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

Source§

impl FromBEBytes<64> for [u128; 4]

Source§

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

Source§

impl FromBEBytes<72> for [u64; 9]

Source§

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

Source§

impl FromBEBytes<80> for [u64; 10]

Source§

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

Source§

impl FromBEBytes<80> for [u128; 5]

Source§

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

Source§

impl FromBEBytes<88> for [u64; 11]

Source§

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

Source§

impl FromBEBytes<96> for [u64; 12]

Source§

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

Source§

impl FromBEBytes<96> for [u128; 6]

Source§

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

Source§

impl FromBEBytes<112> for [u128; 7]

Source§

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

Source§

impl FromBEBytes<128> for [u128; 8]

Source§

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

Source§

impl FromBEBytes<144> for [u128; 9]

Source§

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

Source§

impl FromBEBytes<160> for [u128; 10]

Source§

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

Source§

impl FromBEBytes<176> for [u128; 11]

Source§

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

Source§

impl FromBEBytes<192> for [u128; 12]

Source§

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

Implementors§