Struct dharitri_wasm::types::ManagedMultiResultVecEager
source · pub struct ManagedMultiResultVecEager<M: ManagedTypeApi, T: ManagedVecItem>(/* private fields */);Implementations§
source§impl<M, T> ManagedMultiResultVecEager<M, T>where
M: ManagedTypeApi,
T: ManagedVecItem,
impl<M, T> ManagedMultiResultVecEager<M, T>where
M: ManagedTypeApi,
T: ManagedVecItem,
pub fn new() -> Self
pub fn byte_len(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, index: usize) -> T::Ref<'_>
pub fn slice(&self, start_index: usize, end_index: usize) -> Option<Self>
pub fn push(&mut self, item: T)
pub fn from_single_item(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) -> ManagedVecRefIterator<'_, M, T> ⓘ
Trait Implementations§
source§impl<M: Clone + ManagedTypeApi, T: Clone + ManagedVecItem> Clone for ManagedMultiResultVecEager<M, T>
impl<M: Clone + ManagedTypeApi, T: Clone + ManagedVecItem> Clone for ManagedMultiResultVecEager<M, T>
source§fn clone(&self) -> ManagedMultiResultVecEager<M, T>
fn clone(&self) -> ManagedMultiResultVecEager<M, T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§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: Default + ManagedTypeApi, T: Default + ManagedVecItem> Default for ManagedMultiResultVecEager<M, T>
impl<M: Default + ManagedTypeApi, T: Default + ManagedVecItem> Default for ManagedMultiResultVecEager<M, T>
source§fn default() -> ManagedMultiResultVecEager<M, T>
fn default() -> ManagedMultiResultVecEager<M, T>
Returns the “default value” for a type. Read more
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>
§type DecodeAs = ManagedMultiResultVecEager<M, T>
type DecodeAs = ManagedMultiResultVecEager<M, T>
Indicates how the result of the endpoint can be interpreted when called via proxy.
Self for most types.fn finish<FA>(&self)where
FA: ManagedTypeApi + EndpointFinishApi,
source§impl<M, T> From<ManagedVec<M, T>> for ManagedMultiResultVecEager<M, T>where
M: ManagedTypeApi,
T: ManagedVecItem,
impl<M, T> From<ManagedVec<M, T>> for ManagedMultiResultVecEager<M, T>where
M: ManagedTypeApi,
T: ManagedVecItem,
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> From<Vec<I>> for ManagedMultiResultVecEager<M, T>
impl<M, T, I> From<Vec<I>> for ManagedMultiResultVecEager<M, T>
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