pub trait Serialize: Copy + Sized {
    type MaxEncLen: ArrayLength;

    // Required method
    fn encode(self, buf: &mut GenericArray<u8, Self::MaxEncLen>) -> &[u8] ;
}

Required Associated Types§

Required Methods§

source

fn encode(self, buf: &mut GenericArray<u8, Self::MaxEncLen>) -> &[u8]

Implementations on Foreign Types§

source§

impl Serialize for usize

§

type MaxEncLen = UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>

source§

fn encode(self, buf: &mut GenericArray<u8, Self::MaxEncLen>) -> &[u8]

source§

impl Serialize for u32

§

type MaxEncLen = UInt<UInt<UInt<UTerm, B1>, B0>, B1>

source§

fn encode(self, buf: &mut GenericArray<u8, Self::MaxEncLen>) -> &[u8]

source§

impl Serialize for u8

§

type MaxEncLen = UInt<UInt<UTerm, B1>, B0>

source§

fn encode(self, buf: &mut GenericArray<u8, Self::MaxEncLen>) -> &[u8]

source§

impl Serialize for u16

§

type MaxEncLen = UInt<UInt<UTerm, B1>, B1>

source§

fn encode(self, buf: &mut GenericArray<u8, Self::MaxEncLen>) -> &[u8]

source§

impl Serialize for u128

§

type MaxEncLen = UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B1>

source§

fn encode(self, buf: &mut GenericArray<u8, Self::MaxEncLen>) -> &[u8]

source§

impl Serialize for u64

§

type MaxEncLen = UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>

source§

fn encode(self, buf: &mut GenericArray<u8, Self::MaxEncLen>) -> &[u8]

Implementors§