Struct dharitri_wasm::types::MultiArgVec
source · pub struct MultiArgVec<T>(pub Vec<T>);Expand description
Structure that allows taking a variable number of arguments or returning a variable number of results in a smart contract endpoint.
Tuple Fields§
§0: Vec<T>Implementations§
source§impl<T> MultiArgVec<T>
impl<T> MultiArgVec<T>
Trait Implementations§
source§impl<T> ContractCallArg for &MultiArgVec<T>where
T: ContractCallArg,
impl<T> ContractCallArg for &MultiArgVec<T>where
T: ContractCallArg,
source§impl<T> ContractCallArg for MultiArgVec<T>where
T: ContractCallArg,
impl<T> ContractCallArg for MultiArgVec<T>where
T: ContractCallArg,
source§impl<T> Default for MultiArgVec<T>
impl<T> Default for MultiArgVec<T>
source§impl<T> DynArg for MultiArgVec<T>where
T: DynArg,
impl<T> DynArg for MultiArgVec<T>where
T: DynArg,
fn dyn_load<I, D>(loader: &mut D, arg_id: ArgId) -> Selfwhere
I: TopDecodeInput,
D: DynArgInput<I>,
source§impl<FA, T> EndpointResult<FA> for MultiArgVec<T>
impl<FA, T> EndpointResult<FA> for MultiArgVec<T>
source§impl<T> From<Vec<T>> for MultiArgVec<T>
impl<T> From<Vec<T>> for MultiArgVec<T>
source§impl<T> FromIterator<T> for MultiArgVec<T>
impl<T> FromIterator<T> for MultiArgVec<T>
source§fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
Creates a value from an iterator. Read more
source§impl<T: TypeAbi> TypeAbi for MultiArgVec<T>
impl<T: TypeAbi> TypeAbi for MultiArgVec<T>
fn type_name() -> String
source§fn provide_type_descriptions<TDC: TypeDescriptionContainer>(
accumulator: &mut TDC
)
fn provide_type_descriptions<TDC: TypeDescriptionContainer>( accumulator: &mut TDC )
A type can provide more than its own description.
For instance, a struct can also provide the descriptions of the type of its fields.
TypeAbi doesn’t care for the exact accumulator type,
which is abstracted by the TypeDescriptionContainer trait.
Auto Trait Implementations§
impl<T> RefUnwindSafe for MultiArgVec<T>where
T: RefUnwindSafe,
impl<T> Send for MultiArgVec<T>where
T: Send,
impl<T> Sync for MultiArgVec<T>where
T: Sync,
impl<T> Unpin for MultiArgVec<T>where
T: Unpin,
impl<T> UnwindSafe for MultiArgVec<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more