Type Alias ink_env::call::utils::EmptyArgumentList

source ·
pub type EmptyArgumentList = ArgumentList<ArgumentListEnd, ArgumentListEnd>;
Expand description

An empty argument list.

Aliased Type§

struct EmptyArgumentList { /* private fields */ }

Implementations§

source§

impl EmptyArgumentList

source

pub fn empty() -> EmptyArgumentList

Creates a new empty argument list.

source

pub fn push_arg<T>(self, arg: T) -> ArgumentList<Argument<T>, Self>where T: Encode,

Pushes the first argument to the empty argument list.

Trait Implementations§

source§

impl Encode for EmptyArgumentList

source§

fn size_hint(&self) -> usize

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

fn encode_to<O: Output + ?Sized>(&self, _output: &mut O)

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

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

Convert self to an owned vector.
§

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 encoded_size(&self) -> usize

Calculates the encoded size. Read more