Type Alias EmptyArgumentList

Source
pub type EmptyArgumentList<Abi> = ArgumentList<ArgumentListEnd, ArgumentListEnd, Abi>;
Expand description

An empty argument list.

Aliased Type§

struct EmptyArgumentList<Abi> { /* private fields */ }

Implementations§

Source§

impl<Abi> EmptyArgumentList<Abi>

Source

pub fn empty() -> EmptyArgumentList<Abi>

Creates a new empty argument list.

Source

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

Pushes the first argument to the empty argument list.

Trait Implementations§

Source§

impl Encode for EmptyArgumentList<Ink>

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) -> R
where 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
Source§

impl EncodeArgsWith<Sol> for EmptyArgumentList<Sol>

Source§

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

Encodes the data into a new vector.
Source§

fn encode_to(&self, _buffer: &mut [u8]) -> usize

Encodes the data into a fixed-size buffer, returning the number of bytes written.
Source§

fn encode_to_vec(&self, _buffer: &mut Vec<u8>)

Encodes the data into a dynamically resizing vector.