Type Alias gsdk::BlockNumber

source ·
pub type BlockNumber = u32;
Expand description

Block number type

Trait Implementations§

§

impl Decode for u32

§

fn decode<I>(input: &mut I) -> Result<u32, Error>where I: Input,

Attempt to deserialise the value from input.
§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
§

fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>where I: Input,

Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§

fn skip<I>(input: &mut I) -> Result<(), Error>where I: Input,

Attempt to skip the encoded value from input. Read more
§

impl Encode for u32

§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

Convert self to a slice and then invoke the given closure with it.
§

fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,

Convert self to a slice and append it to the destination.
§

fn encode(&self) -> Vec<u8, Global>

Convert self to an owned vector.
§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more