Struct naia_shared::BigMap
source · pub struct BigMap<K: BigMapKey, V> { /* private fields */ }
Implementations§
source§impl<K: BigMapKey, V> BigMap<K, V>
impl<K: BigMapKey, V> BigMap<K, V>
pub fn new() -> Self
pub fn get(&self, key: &K) -> Option<&V>
pub fn get_mut(&mut self, key: &K) -> Option<&mut V>
pub fn insert(&mut self, value: V) -> K
pub fn remove(&mut self, key: &K) -> Option<V>
pub fn contains_key(&self, key: &K) -> bool
pub fn iter<'a>( &'a self ) -> Map<Iter<'_, u64, V>, fn(_: (&'a u64, &'a V)) -> (K, &'a V)>
pub fn iter_mut<'a>( &'a mut self ) -> Map<IterMut<'_, u64, V>, fn(_: (&'a u64, &'a mut V)) -> (K, &'a mut V)>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Auto Trait Implementations§
impl<K, V> RefUnwindSafe for BigMap<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for BigMap<K, V>
impl<K, V> Sync for BigMap<K, V>
impl<K, V> Unpin for BigMap<K, V>
impl<K, V> UnwindSafe for BigMap<K, V>where
K: UnwindSafe,
V: 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