pub struct Map<K, V> { /* private fields */ }
Implementations§
Source§impl Map<u64, ProtoData>
impl Map<u64, ProtoData>
pub fn new() -> Self
pub fn clear(&mut self)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn contains_key(&self, key: u64) -> bool
pub fn get(&self, key: u64) -> Option<&ProtoData>
pub fn get_mut(&mut self, key: u64) -> Option<&mut ProtoData>
pub fn insert(&mut self, key: u64, message: ProtoData) -> Option<ProtoData>
pub fn remove(&mut self, key: u64) -> Option<ProtoData>
pub fn iter(&self) -> impl Iterator<Item = (&u64, &ProtoData)>
pub fn iter_mut(&mut self) -> impl Iterator<Item = (&u64, &mut ProtoData)>
pub fn keys(&self) -> impl Iterator<Item = &u64>
pub fn values(&self) -> impl Iterator<Item = &ProtoData>
pub fn values_mut(&mut self) -> impl Iterator<Item = &mut ProtoData>
Trait Implementations§
impl Eq for Map<u64, ProtoData>
Auto Trait Implementations§
impl<K, V> Freeze for Map<K, V>
impl<K, V> RefUnwindSafe for Map<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Map<K, V>
impl<K, V> Sync for Map<K, V>
impl<K, V> Unpin for Map<K, V>
impl<K, V> UnwindSafe for Map<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
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