Struct primitives::balances_map::Map
source · pub struct Map<K: Ord, V>(_);
Implementations
sourceimpl Map<Address, UnifiedNum>
impl Map<Address, UnifiedNum>
pub fn to_precision(&self, precision: u8) -> BalancesMap
sourceimpl<K: Ord, V> Map<K, V>
impl<K: Ord, V> Map<K, V>
pub fn iter(&self) -> Iter<'_, K, V>
pub fn values(&self) -> Values<'_, K, V>
pub fn get(&self, key: &K) -> Option<&V>
pub fn contains_key(&self, key: &K) -> bool
pub fn entry(&mut self, key: K) -> Entry<'_, K, V>
pub fn insert(&mut self, key: K, value: V) -> Option<V>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations
sourceimpl<'de, K: Ord, V> Deserialize<'de> for Map<K, V>where
K: Deserialize<'de>,
V: Deserialize<'de>,
impl<'de, K: Ord, V> Deserialize<'de> for Map<K, V>where
K: Deserialize<'de>,
V: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<K: Ord, V> FromIterator<(K, V)> for Map<K, V>
impl<K: Ord, V> FromIterator<(K, V)> for Map<K, V>
sourcefn from_iter<I: IntoIterator<Item = (K, V)>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = (K, V)>>(iter: I) -> Self
Creates a value from an iterator. Read more
sourceimpl<K: Ord, V> IntoIterator for Map<K, V>
impl<K: Ord, V> IntoIterator for Map<K, V>
sourceimpl<K: PartialEq + Ord, V: PartialEq> PartialEq<Map<K, V>> for Map<K, V>
impl<K: PartialEq + Ord, V: PartialEq> PartialEq<Map<K, V>> for Map<K, V>
impl<K: Eq + Ord, V: Eq> Eq for Map<K, V>
impl<K: Ord, V> StructuralEq for Map<K, V>
impl<K: Ord, V> StructuralPartialEq for Map<K, V>
Auto Trait Implementations
impl<K, V> RefUnwindSafe for Map<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Map<K, V>where
K: Send,
V: Send,
impl<K, V> Sync for Map<K, V>where
K: Sync,
V: Sync,
impl<K, V> Unpin for Map<K, V>
impl<K, V> UnwindSafe for Map<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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