FromByteArray

Trait FromByteArray 

Source
pub trait FromByteArray {
    type Size: ArraySize;

    // Required method
    fn from_bytes(array: Array<u8, Self::Size>) -> Self;
}

Required Associated Types§

Required Methods§

Source

fn from_bytes(array: Array<u8, Self::Size>) -> 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 FromByteArray for i8

Source§

type Size = UInt<UTerm, B1>

Source§

fn from_bytes(array: Array<u8, Self::Size>) -> Self

Source§

impl FromByteArray for u8

Source§

type Size = UInt<UTerm, B1>

Source§

fn from_bytes(array: Array<u8, Self::Size>) -> Self

Source§

impl FromByteArray for ()

Source§

type Size = UTerm

Source§

fn from_bytes(array: Array<u8, Self::Size>) -> Self

Source§

impl<Size, T> FromByteArray for Array<T, Size>
where Size: ArraySize, T: FromByteArray, Prod<T::Size, Size>: ArraySize, T::Size: Mul<Size>,

Source§

type Size = <<T as FromByteArray>::Size as Mul<Size>>::Output

Source§

fn from_bytes(array: Array<u8, Self::Size>) -> Self

Source§

impl<T1> FromByteArray for (T1,)
where T1: FromByteArray,

Source§

type Size = <T1 as FromByteArray>::Size

Source§

fn from_bytes(array: Array<u8, Self::Size>) -> Self

Source§

impl<T1, T2> FromByteArray for (T1, T2)
where T1: FromByteArray, T2: FromByteArray, T1::Size: Add<T2::Size>, Sum<T1::Size, T2::Size>: ArraySize + Sub<T1::Size, Output = T2::Size>,

Source§

type Size = <<T1 as FromByteArray>::Size as Add<<T2 as FromByteArray>::Size>>::Output

Source§

fn from_bytes(array: Array<u8, Self::Size>) -> Self

Source§

impl<const N: usize, T> FromByteArray for [T; N]

Source§

type Size = <<T as FromByteArray>::Size as Mul<<[T; N] as AssocArraySize>::Size>>::Output

Source§

fn from_bytes(array: Array<u8, Self::Size>) -> Self

Implementors§

Source§

impl FromByteArray for BigEndian<f32>

Source§

impl FromByteArray for BigEndian<f64>

Source§

impl FromByteArray for BigEndian<i8>

Source§

impl FromByteArray for BigEndian<i16>

Source§

impl FromByteArray for BigEndian<i32>

Source§

impl FromByteArray for BigEndian<i64>

Source§

impl FromByteArray for BigEndian<i128>

Source§

impl FromByteArray for BigEndian<u8>

Source§

impl FromByteArray for BigEndian<u16>

Source§

impl FromByteArray for BigEndian<u32>

Source§

impl FromByteArray for BigEndian<u64>

Source§

impl FromByteArray for BigEndian<u128>

Source§

impl FromByteArray for LittleEndian<f32>

Source§

impl FromByteArray for LittleEndian<f64>

Source§

impl FromByteArray for LittleEndian<i8>

Source§

impl FromByteArray for LittleEndian<i16>

Source§

impl FromByteArray for LittleEndian<i32>

Source§

impl FromByteArray for LittleEndian<i64>

Source§

impl FromByteArray for LittleEndian<i128>

Source§

impl FromByteArray for LittleEndian<u8>

Source§

impl FromByteArray for LittleEndian<u16>

Source§

impl FromByteArray for LittleEndian<u32>

Source§

impl FromByteArray for LittleEndian<u64>

Source§

impl FromByteArray for LittleEndian<u128>

Source§

impl FromByteArray for NativeEndian<f32>

Source§

impl FromByteArray for NativeEndian<f64>

Source§

impl FromByteArray for NativeEndian<i8>

Source§

impl FromByteArray for NativeEndian<i16>

Source§

impl FromByteArray for NativeEndian<i32>

Source§

impl FromByteArray for NativeEndian<i64>

Source§

impl FromByteArray for NativeEndian<i128>

Source§

impl FromByteArray for NativeEndian<u8>

Source§

impl FromByteArray for NativeEndian<u16>

Source§

impl FromByteArray for NativeEndian<u32>

Source§

impl FromByteArray for NativeEndian<u64>

Source§

impl FromByteArray for NativeEndian<u128>