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>
impl<Abi> EmptyArgumentList<Abi>
Sourcepub fn empty() -> EmptyArgumentList<Abi>
pub fn empty() -> EmptyArgumentList<Abi>
Creates a new empty argument list.
Sourcepub fn push_arg<T>(self, arg: T) -> ArgumentList<Argument<T>, Self, Abi>where
T: AbiEncodeWith<Abi>,
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>
impl Encode for EmptyArgumentList<ScaleEncoding>
Source§fn size_hint(&self) -> usize
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)
fn encode_to<O: Output + ?Sized>(&self, _output: &mut O)
Convert self to a slice and append it to the destination.
§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl SolEncode<'_> for EmptyArgumentList<SolEncoding>
impl SolEncode<'_> for EmptyArgumentList<SolEncoding>
Source§fn to_sol_type(&self)
fn to_sol_type(&self)
Converts from
Self
to Self::SolType
via either a borrow (if possible), or
a possibly expensive conversion otherwise.