Trait multiversx_sc::io::ArgNestedTuple
source · pub trait ArgNestedTuple<AA>{
type ArgNames;
// Required methods
fn check_num_single_args(index: i32);
fn next_single_arg(index: i32, arg_names: Self::ArgNames) -> Self;
fn next_multi_arg<L: TopDecodeMultiInput>(
loader: L,
arg_names: Self::ArgNames
) -> Self;
}Expand description
Models an argument tree of the form (arg1, (arg2, ... (argn, ()))), used for retrieving endpoint arguments.
It translates to a small algorithm determined at compile-time. That is why all methods are inlined.
Required Associated Types§
Required Methods§
fn check_num_single_args(index: i32)
fn next_single_arg(index: i32, arg_names: Self::ArgNames) -> Self
fn next_multi_arg<L: TopDecodeMultiInput>( loader: L, arg_names: Self::ArgNames ) -> Self
Object Safety§
This trait is not object safe.