pub struct ObjectMap<K, S = RandomState> { /* private fields */ }Implementations§
Source§impl<K> ObjectMap<K, RandomState>
impl<K> ObjectMap<K, RandomState>
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
Source§impl<K, S> ObjectMap<K, S>
impl<K, S> ObjectMap<K, S>
pub fn with_capacity_and_hasher(capacity: usize, hasher: S) -> Self
pub fn insert<V>(&mut self, k: K, v: V) -> Option<*mut c_void>
pub fn insert_raw(&mut self, k: K, ptr: *mut c_void) -> Option<*mut c_void>
pub fn remove<Q>(&mut self, k: &Q) -> Option<*mut c_void>
pub fn get<Q, T>(&self, k: &Q) -> Option<&T>
pub fn get_mut<Q, T>(&mut self, k: &Q) -> Option<&mut T>
pub fn contains_key<Q>(&self, k: &Q) -> bool
Trait Implementations§
Source§impl<K> Default for ObjectMap<K, RandomState>
impl<K> Default for ObjectMap<K, RandomState>
Source§impl<K, S> IntoIterator for ObjectMap<K, S>
impl<K, S> IntoIterator for ObjectMap<K, S>
Auto Trait Implementations§
impl<K, S> Freeze for ObjectMap<K, S>where
S: Freeze,
impl<K, S> RefUnwindSafe for ObjectMap<K, S>where
S: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, S = RandomState> !Send for ObjectMap<K, S>
impl<K, S = RandomState> !Sync for ObjectMap<K, S>
impl<K, S> Unpin for ObjectMap<K, S>
impl<K, S> UnwindSafe for ObjectMap<K, S>where
K: UnwindSafe,
S: 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