INNER CODE UNIT · Rust
get_mut
lunatic-solutions/lunatic · crates/hash-map-id/src/lib.rs:31
pub fn get_mut(&mut self, id: u64) -> Option<&mut T> {
self.store.get_mut(&id)
}
pub fn get(&self, id: u64) -> Option<&T> {
self.store.get(&id)
}
}
impl<T> Default for HashMapId<T>
where
T: Send + Sync,
{
fn default() -> Self {
Self::new()
}
}