pub enum Entry<'a, TKey: Eq + Hash, TPriority: Ord, S: BuildHasher> {
Occupied(OccupiedEntry<'a, TKey, TPriority, S>),
Vacant(VacantEntry<'a, TKey, TPriority, S>),
}
Expand description
A view into a single entry in a queue, which may either be vacant or occupied.
This enum
is constructed from the entry
method on KeyedPriorityQueue
.
Variants§
Occupied(OccupiedEntry<'a, TKey, TPriority, S>)
An occupied entry.
Vacant(VacantEntry<'a, TKey, TPriority, S>)
A vacant entry.
Auto Trait Implementations§
impl<'a, TKey, TPriority, S> Freeze for Entry<'a, TKey, TPriority, S>where
TKey: Freeze,
impl<'a, TKey, TPriority, S> RefUnwindSafe for Entry<'a, TKey, TPriority, S>
impl<'a, TKey, TPriority, S> !Send for Entry<'a, TKey, TPriority, S>
impl<'a, TKey, TPriority, S> !Sync for Entry<'a, TKey, TPriority, S>
impl<'a, TKey, TPriority, S> Unpin for Entry<'a, TKey, TPriority, S>where
TKey: Unpin,
impl<'a, TKey, TPriority, S> !UnwindSafe for Entry<'a, TKey, TPriority, S>
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