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<ScaleEncoding>

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 SolEncode<'_> for EmptyArgumentList<SolEncoding>

Source§

type SolType = ()

Equivalent Solidity ABI type representation.
Source§

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

Solidity ABI encode the value.
Source§

fn to_sol_type(&self)

Converts from Self to Self::SolType via either a borrow (if possible), or a possibly expensive conversion otherwise.
§

const SOL_NAME: &'static str = <<Self::SolType as SolTypeEncode>::AlloyType as AlloySolType>::SOL_NAME

Name of equivalent Solidity ABI type.