pub struct RefMap<K: Ref, V>(/* private fields */);Implementations§
Source§impl<K: Ref, V> RefMap<K, V>
impl<K: Ref, V> RefMap<K, V>
pub fn new() -> Self
pub fn insert(&mut self, key: K, value: V)
pub fn get(&self, key: &K) -> Option<&V>
pub fn get_mut(&mut self, key: K) -> Option<&mut V>
pub fn iter(&self) -> impl Iterator<Item = (&K, &V)>
pub fn iter_mut(&mut self) -> impl Iterator<Item = (&K, &mut V)>
Trait Implementations§
Source§impl<K: Ref + 'static, V: 'static> IntoIterator for RefMap<K, V>
impl<K: Ref + 'static, V: 'static> IntoIterator for RefMap<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for RefMap<K, V>
impl<K, V> RefUnwindSafe for RefMap<K, V>where
V: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, V> Send for RefMap<K, V>
impl<K, V> Sync for RefMap<K, V>
impl<K, V> Unpin for RefMap<K, V>
impl<K, V> UnwindSafe for RefMap<K, V>where
V: UnwindSafe,
K: 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