pub struct EventHashMap<K: RawEvent> { /* private fields */ }Trait Implementations§
Source§impl<K: RawEvent> EventMap<K, Arc<LedgerNode<K, EventHashMap<K>>>> for EventHashMap<K>
impl<K: RawEvent> EventMap<K, Arc<LedgerNode<K, EventHashMap<K>>>> for EventHashMap<K>
type Item = Arc<LedgerNode<K, EventHashMap<K>>>
type Values<'a> = Values<'a, K, <EventHashMap<K> as EventMap<K, Arc<LedgerNode<K, EventHashMap<K>>>>>::Item> where K: 'a
fn new() -> Self
fn get(&self, query: &K) -> Option<&Self::Item>
fn values(&self) -> Self::Values<'_>
fn insert_with<F>(&mut self, k: K, f: F) -> Self::Item
Source§fn insert(&mut self, k: K, v: Self::Item) -> Self::Item
fn insert(&mut self, k: K, v: Self::Item) -> Self::Item
Don’t override existent entry,
but return its values instead of the one wanted to insert
fn remove(&mut self, query: &K) -> Option<Self::Item>
fn clear(&mut self)
fn is_empty(&self) -> bool
Auto Trait Implementations§
impl<K> Freeze for EventHashMap<K>
impl<K> !RefUnwindSafe for EventHashMap<K>
impl<K> Send for EventHashMap<K>where
K: Send,
impl<K> Sync for EventHashMap<K>where
K: Sync,
impl<K> Unpin for EventHashMap<K>where
K: Unpin,
impl<K> UnsafeUnpin for EventHashMap<K>
impl<K> !UnwindSafe for EventHashMap<K>
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