Struct naia_shared::BigMap
source · [−]pub struct BigMap<K: BigMapKey, V> { /* private fields */ }
Implementations
sourceimpl<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
Auto Trait Implementations
impl<K, V> RefUnwindSafe for BigMap<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for BigMap<K, V> where
K: Send,
V: Send,
impl<K, V> Sync for BigMap<K, V> where
K: Sync,
V: Sync,
impl<K, V> Unpin for BigMap<K, V> where
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for BigMap<K, V> where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more