pub struct EsdtInstances(/* private fields */);
Implementations§
Source§impl EsdtInstances
impl EsdtInstances
pub fn new() -> Self
pub fn new_from_hash(hash: BTreeMap<u64, EsdtInstance>) -> Self
pub fn add(&mut self, nonce: u64, value: BigUint)
pub fn push_instance(&mut self, instance: EsdtInstance)
pub fn increase_balance( &mut self, nonce: u64, value: &BigUint, metadata: EsdtInstanceMetadata, )
pub fn set_balance( &mut self, nonce: u64, value: &BigUint, metadata: EsdtInstanceMetadata, )
pub fn get_by_nonce(&self, nonce: u64) -> Option<&EsdtInstance>
pub fn get_by_nonce_or_default(&self, nonce: u64) -> EsdtInstance
pub fn get_mut_by_nonce(&mut self, nonce: u64) -> Option<&mut EsdtInstance>
pub fn get_instances(&self) -> &BTreeMap<u64, EsdtInstance>
pub fn is_empty_esdt(&self) -> bool
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
Trait Implementations§
Source§impl Clone for EsdtInstances
impl Clone for EsdtInstances
Source§fn clone(&self) -> EsdtInstances
fn clone(&self) -> EsdtInstances
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 Debug for EsdtInstances
impl Debug for EsdtInstances
Source§impl Default for EsdtInstances
impl Default for EsdtInstances
Source§fn default() -> EsdtInstances
fn default() -> EsdtInstances
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EsdtInstances
impl RefUnwindSafe for EsdtInstances
impl Send for EsdtInstances
impl Sync for EsdtInstances
impl Unpin for EsdtInstances
impl UnwindSafe for EsdtInstances
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more