Struct dharitri_wasm::types::ManagedMultiResultVecEager
source · pub struct ManagedMultiResultVecEager<M: ManagedTypeApi, T: ManagedVecItem<M>>(/* private fields */);Implementations§
source§impl<M, T> ManagedMultiResultVecEager<M, T>where
M: ManagedTypeApi,
T: ManagedVecItem<M>,
impl<M, T> ManagedMultiResultVecEager<M, T>where
M: ManagedTypeApi,
T: ManagedVecItem<M>,
pub fn new(api: M) -> Self
pub fn byte_len(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, index: usize) -> Option<T>
pub fn slice(&self, start_index: usize, end_index: usize) -> Option<Self>
pub fn push(&mut self, item: T)
pub fn from_single_item(api: M, item: T) -> Self
pub fn overwrite_with_single_item(&mut self, item: T)
pub fn append_vec(&mut self, item: ManagedMultiResultVecEager<M, T>)
pub fn clear(&mut self)
pub fn into_vec(self) -> ManagedVec<M, T>
pub fn with_self_as_vec<F>(&mut self, f: F)
pub fn iter(&self) -> ManagedVecIterator<'_, M, T> ⓘ
Trait Implementations§
source§impl<M, T> ContractCallArg for &ManagedMultiResultVecEager<M, T>
impl<M, T> ContractCallArg for &ManagedMultiResultVecEager<M, T>
fn push_dyn_arg<O: DynArgOutput>(&self, output: &mut O)
source§impl<M, T> ContractCallArg for ManagedMultiResultVecEager<M, T>
impl<M, T> ContractCallArg for ManagedMultiResultVecEager<M, T>
fn push_dyn_arg<O: DynArgOutput>(&self, output: &mut O)
source§impl<M, T> DynArg for ManagedMultiResultVecEager<M, T>
impl<M, T> DynArg for ManagedMultiResultVecEager<M, T>
source§impl<M, T> EndpointResult for ManagedMultiResultVecEager<M, T>
impl<M, T> EndpointResult for ManagedMultiResultVecEager<M, T>
source§impl<M, T> From<ManagedVec<M, T>> for ManagedMultiResultVecEager<M, T>where
M: ManagedTypeApi,
T: ManagedVecItem<M>,
impl<M, T> From<ManagedVec<M, T>> for ManagedMultiResultVecEager<M, T>where
M: ManagedTypeApi,
T: ManagedVecItem<M>,
source§fn from(managed_vec: ManagedVec<M, T>) -> Self
fn from(managed_vec: ManagedVec<M, T>) -> Self
Converts to this type from the input type.
source§impl<M, T, I> ManagedFrom<M, Vec<I>> for ManagedMultiResultVecEager<M, T>
impl<M, T, I> ManagedFrom<M, Vec<I>> for ManagedMultiResultVecEager<M, T>
fn managed_from(api: M, v: Vec<I>) -> Self
source§impl<M, T> TypeAbi for ManagedMultiResultVecEager<M, T>
impl<M, T> TypeAbi for ManagedMultiResultVecEager<M, 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<M, T> RefUnwindSafe for ManagedMultiResultVecEager<M, T>where
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<M, T> Send for ManagedMultiResultVecEager<M, T>
impl<M, T> Sync for ManagedMultiResultVecEager<M, T>
impl<M, T> Unpin for ManagedMultiResultVecEager<M, T>
impl<M, T> UnwindSafe for ManagedMultiResultVecEager<M, T>where
M: UnwindSafe,
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