Struct object_collection::map::ObjectMap
source · #[repr(C)]pub struct ObjectMap<K, S = RandomState> { /* private fields */ }
Implementations
sourceimpl<K> ObjectMap<K, RandomState>
impl<K> ObjectMap<K, RandomState>
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
sourceimpl<K, S> ObjectMap<K, S>where
K: Eq + Hash,
S: BuildHasher,
impl<K, S> ObjectMap<K, S>where
K: Eq + Hash,
S: BuildHasher,
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 remove<Q: ?Sized>(&mut self, k: &Q) -> Option<*mut c_void>where
K: Borrow<Q>,
Q: Hash + Eq,
pub fn get<Q: ?Sized, T>(&self, k: &Q) -> Option<&T>where
K: Borrow<Q>,
Q: Hash + Eq,
pub fn get_mut<Q: ?Sized, T>(&mut self, k: &Q) -> Option<&mut T>where
K: Borrow<Q>,
Q: Hash + Eq,
pub fn contains_key<Q: ?Sized>(&self, k: &Q) -> boolwhere
K: Borrow<Q>,
Q: Hash + Eq,
Trait Implementations
Auto Trait Implementations
impl<K, S> RefUnwindSafe for ObjectMap<K, S>where
K: RefUnwindSafe,
S: 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>where
K: Unpin,
S: Unpin,
impl<K, S> UnwindSafe for ObjectMap<K, S>where
K: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more