Struct keyed_priority_queue::OccupiedEntry [−][src]
A view into an occupied entry in a KeyedPriorityQueue
.
It is part of the Entry
enum.
Implementations
impl<'a, TKey, TPriority, S> OccupiedEntry<'a, TKey, TPriority, S> where
TKey: 'a + Eq + Hash,
TPriority: 'a + Ord,
S: BuildHasher,
[src]
TKey: 'a + Eq + Hash,
TPriority: 'a + Ord,
S: BuildHasher,
pub fn get_priority(&self) -> &TPriority
[src]
pub fn set_priority(self, priority: TPriority) -> TPriority
[src]
Changes priority of key and returns old priority
Time complexity
Up to O(log n) operations in worst case O(1) in best case
pub fn get_key(&self) -> &TKey
[src]
pub fn remove(self) -> (TKey, TPriority)
[src]
Auto Trait Implementations
impl<'a, TKey, TPriority, S> RefUnwindSafe for OccupiedEntry<'a, TKey, TPriority, S> where
S: RefUnwindSafe,
TKey: RefUnwindSafe,
TPriority: RefUnwindSafe,
[src]
S: RefUnwindSafe,
TKey: RefUnwindSafe,
TPriority: RefUnwindSafe,
impl<'a, TKey, TPriority, S = RandomState> !Send for OccupiedEntry<'a, TKey, TPriority, S>
[src]
impl<'a, TKey, TPriority, S = RandomState> !Sync for OccupiedEntry<'a, TKey, TPriority, S>
[src]
impl<'a, TKey, TPriority, S> Unpin for OccupiedEntry<'a, TKey, TPriority, S> where
TKey: Unpin,
[src]
TKey: Unpin,
impl<'a, TKey, TPriority, S = RandomState> !UnwindSafe for OccupiedEntry<'a, TKey, TPriority, S>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,