Trait IntoByteArray

Source
pub trait IntoByteArray {
    type Size: ArraySize;

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

Required Associated Types§

Required Methods§

Source

fn into_bytes(self) -> Array<u8, Self::Size>

Implementations on Foreign Types§

Source§

impl IntoByteArray for bool

Source§

type Size = UInt<UTerm, B1>

Source§

fn into_bytes(self) -> Array<u8, Self::Size>

Source§

impl IntoByteArray for i8

Source§

type Size = UInt<UTerm, B1>

Source§

fn into_bytes(self) -> Array<u8, Self::Size>

Source§

impl IntoByteArray for u8

Source§

type Size = UInt<UTerm, B1>

Source§

fn into_bytes(self) -> Array<u8, Self::Size>

Source§

impl IntoByteArray for ()

Source§

type Size = UTerm

Source§

fn into_bytes(self) -> Array<u8, Self::Size>

Source§

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

Source§

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

Source§

fn into_bytes(self) -> Array<u8, Self::Size>

Source§

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

Source§

type Size = <T1 as IntoByteArray>::Size

Source§

fn into_bytes(self) -> Array<u8, Self::Size>

Source§

impl<T1, T2> IntoByteArray for (T1, T2)
where T1: IntoByteArray, T2: IntoByteArray, Sum<T1::Size, T2::Size>: ArraySize, T1::Size: Add<T2::Size>,

Source§

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

Source§

fn into_bytes(self) -> Array<u8, Self::Size>

Source§

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

Implementors§

Source§

impl IntoByteArray for BigEndian<f32>

Source§

impl IntoByteArray for BigEndian<f64>

Source§

impl IntoByteArray for BigEndian<i8>

Source§

impl IntoByteArray for BigEndian<i16>

Source§

impl IntoByteArray for BigEndian<i32>

Source§

impl IntoByteArray for BigEndian<i64>

Source§

impl IntoByteArray for BigEndian<i128>

Source§

impl IntoByteArray for BigEndian<u8>

Source§

impl IntoByteArray for BigEndian<u16>

Source§

impl IntoByteArray for BigEndian<u32>

Source§

impl IntoByteArray for BigEndian<u64>

Source§

impl IntoByteArray for BigEndian<u128>

Source§

impl IntoByteArray for LittleEndian<f32>

Source§

impl IntoByteArray for LittleEndian<f64>

Source§

impl IntoByteArray for LittleEndian<i8>

Source§

impl IntoByteArray for LittleEndian<i16>

Source§

impl IntoByteArray for LittleEndian<i32>

Source§

impl IntoByteArray for LittleEndian<i64>

Source§

impl IntoByteArray for LittleEndian<i128>

Source§

impl IntoByteArray for LittleEndian<u8>

Source§

impl IntoByteArray for LittleEndian<u16>

Source§

impl IntoByteArray for LittleEndian<u32>

Source§

impl IntoByteArray for LittleEndian<u64>

Source§

impl IntoByteArray for LittleEndian<u128>

Source§

impl IntoByteArray for NativeEndian<f32>

Source§

impl IntoByteArray for NativeEndian<f64>

Source§

impl IntoByteArray for NativeEndian<i8>

Source§

impl IntoByteArray for NativeEndian<i16>

Source§

impl IntoByteArray for NativeEndian<i32>

Source§

impl IntoByteArray for NativeEndian<i64>

Source§

impl IntoByteArray for NativeEndian<i128>

Source§

impl IntoByteArray for NativeEndian<u8>

Source§

impl IntoByteArray for NativeEndian<u16>

Source§

impl IntoByteArray for NativeEndian<u32>

Source§

impl IntoByteArray for NativeEndian<u64>

Source§

impl IntoByteArray for NativeEndian<u128>