pub struct OnceMap<K, V> { /* private fields */ }Expand description
A map structure where each key can be set only once
This allows the get function to safely return unwrapped references to the values, while still allowing concurrent inserts.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<K, V> !Freeze for OnceMap<K, V>
impl<K, V> !RefUnwindSafe for OnceMap<K, V>
impl<K, V> Send for OnceMap<K, V>
impl<K, V> Sync for OnceMap<K, V>
impl<K, V> Unpin for OnceMap<K, V>
impl<K, V> !UnwindSafe for OnceMap<K, V>
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