Struct keyed_priority_queue::VacantEntry
source · pub struct VacantEntry<'a, TKey, TPriority, S = RandomState>where
TKey: 'a + Eq + Hash,
TPriority: 'a + Ord,
S: BuildHasher,{ /* private fields */ }
Expand description
A view into a vacant entry in a KeyedPriorityQueue
.
It is part of the Entry
enum.
Implementations§
source§impl<'a, TKey, TPriority, S> VacantEntry<'a, TKey, TPriority, S>where
TKey: 'a + Eq + Hash,
TPriority: 'a + Ord,
S: BuildHasher,
impl<'a, TKey, TPriority, S> VacantEntry<'a, TKey, TPriority, S>where TKey: 'a + Eq + Hash, TPriority: 'a + Ord, S: BuildHasher,
sourcepub fn set_priority(self, priority: TPriority)
pub fn set_priority(self, priority: TPriority)
Auto Trait Implementations§
impl<'a, TKey, TPriority, S> RefUnwindSafe for VacantEntry<'a, TKey, TPriority, S>where S: RefUnwindSafe, TKey: RefUnwindSafe, TPriority: RefUnwindSafe,
impl<'a, TKey, TPriority, S = RandomState> !Send for VacantEntry<'a, TKey, TPriority, S>
impl<'a, TKey, TPriority, S = RandomState> !Sync for VacantEntry<'a, TKey, TPriority, S>
impl<'a, TKey, TPriority, S> Unpin for VacantEntry<'a, TKey, TPriority, S>where TKey: Unpin,
impl<'a, TKey, TPriority, S = RandomState> !UnwindSafe for VacantEntry<'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