Struct state_objects::UIntMap
source · pub struct UIntMap<K, V: UInt> { /* private fields */ }Expand description
A map from keys to 128-bit unsigned integers.
Implementations§
source§impl<'a, K: ObjectKey, V: UInt> UIntMap<K, V>
impl<'a, K: ObjectKey, V: UInt> UIntMap<K, V>
sourcepub fn get(&self, ctx: &Context<'_>, key: K::Value<'_>) -> Response<'_, u128>
pub fn get(&self, ctx: &Context<'_>, key: K::Value<'_>) -> Response<'_, u128>
Gets the current value for the given key, defaulting always to 0.
Auto Trait Implementations§
impl<K, V> Freeze for UIntMap<K, V>
impl<K, V> RefUnwindSafe for UIntMap<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for UIntMap<K, V>
impl<K, V> Sync for UIntMap<K, V>
impl<K, V> Unpin for UIntMap<K, V>
impl<K, V> UnwindSafe for UIntMap<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