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 SolTypeValue<()> for EmptyArgumentList<SolEncoding>
impl SolTypeValue<()> for EmptyArgumentList<SolEncoding>
fn stv_to_tokens(&self) -> <() as SolType>::Token<'_>
fn stv_abi_encode_packed_to(&self, _out: &mut Vec<u8>)
fn stv_eip712_data_word(&self) -> Word
fn stv_abi_encoded_size(&self) -> usize
fn stv_abi_packed_encoded_size(&self) -> usize
Source§impl SolValue for EmptyArgumentList<SolEncoding>
impl SolValue for EmptyArgumentList<SolEncoding>
§fn sol_type_name(&self) -> Cow<'static, str>
fn sol_type_name(&self) -> Cow<'static, str>
👎Deprecated since 0.6.3: use
sol_name
insteadThe name of the associated Solidity type. Read more
§fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>
fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>
Tokenizes the given value into this type’s token. Read more
§fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Selfwhere
Self: From<<Self::SolType as SolType>::RustType>,
fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Selfwhere
Self: From<<Self::SolType as SolType>::RustType>,
Detokenize a value from the given token. Read more
§fn abi_encoded_size(&self) -> usize
fn abi_encoded_size(&self) -> usize
Calculate the ABI-encoded size of the data. Read more
§fn eip712_data_word(&self) -> FixedBytes<32>
fn eip712_data_word(&self) -> FixedBytes<32>
Encode this data according to EIP-712
encodeData
rules, and hash it
if necessary. Read more§fn abi_encode_packed_to(&self, out: &mut Vec<u8>)
fn abi_encode_packed_to(&self, out: &mut Vec<u8>)
Non-standard Packed Mode ABI encoding. Read more
§fn abi_encode_sequence(&self) -> Vec<u8> ⓘwhere
<Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,
fn abi_encode_sequence(&self) -> Vec<u8> ⓘwhere
<Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,
Encodes an ABI sequence. Read more
§fn abi_encode_params(&self) -> Vec<u8> ⓘwhere
<Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,
fn abi_encode_params(&self) -> Vec<u8> ⓘwhere
<Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,
Encodes an ABI sequence suitable for function parameters. Read more
§fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>where
Self: From<<Self::SolType as SolType>::RustType>,
fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>where
Self: From<<Self::SolType as SolType>::RustType>,
ABI-decode this type from the given data. Read more