FromLeBytes

Trait FromLeBytes 

Source
pub trait FromLeBytes<const N: usize, T> {
    // Required methods
    fn from_bytes(v: [u8; N]) -> T;
    fn from_bytes_ref(v: &[u8; N]) -> T;
}

Required Methods§

Source

fn from_bytes(v: [u8; N]) -> T

Source

fn from_bytes_ref(v: &[u8; N]) -> T

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, i8> for i8

Source§

impl FromLeBytes<1, u8> for u8

Source§

impl FromLeBytes<2, i16> for i16

Source§

impl FromLeBytes<2, u16> for u16

Source§

impl FromLeBytes<4, f32> for f32

Source§

impl FromLeBytes<4, i32> for i32

Source§

impl FromLeBytes<4, u32> for u32

Source§

impl FromLeBytes<8, f64> for f64

Source§

impl FromLeBytes<8, i64> for i64

Source§

impl FromLeBytes<8, u64> for u64

Source§

impl FromLeBytes<16, i128> for i128

Source§

impl FromLeBytes<16, u128> for u128

Source§

impl FromLeBytes<USIZE, isize> for isize

Source§

impl FromLeBytes<USIZE, usize> for usize

Implementors§