pub struct IntMap<K: AsIndex, V> { /* private fields */ }Implementations§
Source§impl<K: AsIndex, V> IntMap<K, V>
impl<K: AsIndex, V> IntMap<K, V>
pub fn new() -> Self
pub fn has(&self, k: K) -> bool
pub fn reserve(&mut self, key: K, pad: V)where
V: Clone,
pub fn reserve_default(&mut self, key: K)where
V: Default,
pub fn insert(&mut self, key: K, val: V, pad: V)where
V: Clone,
pub fn insert_default(&mut self, key: K, val: V)where
V: Default,
pub fn iter(&self) -> impl Iterator<Item = (K, &V)>
pub fn iter_mut(&mut self) -> impl Iterator<Item = (K, &mut V)>
Trait Implementations§
Auto Trait Implementations§
impl<K, V> Freeze for IntMap<K, V>
impl<K, V> RefUnwindSafe for IntMap<K, V>where
V: RefUnwindSafe,
impl<K, V> Send for IntMap<K, V>where
V: Send,
impl<K, V> Sync for IntMap<K, V>where
V: Sync,
impl<K, V> Unpin for IntMap<K, V>where
V: Unpin,
impl<K, V> UnwindSafe for IntMap<K, V>where
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