[−][src]Struct keyed_priority_queue::OccupiedEntry
A view into an occupied entry in a KeyedPriorityQueue
.
It is part of the Entry
enum.
Methods
impl<'a, TKey, TPriority> OccupiedEntry<'a, TKey, TPriority> where
TKey: 'a + Eq + Hash,
TPriority: 'a + Ord,
[src]
TKey: 'a + Eq + Hash,
TPriority: 'a + Ord,
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> RefUnwindSafe for OccupiedEntry<'a, TKey, TPriority> where
TKey: RefUnwindSafe,
TPriority: RefUnwindSafe,
TKey: RefUnwindSafe,
TPriority: RefUnwindSafe,
impl<'a, TKey, TPriority> Send for OccupiedEntry<'a, TKey, TPriority> where
TKey: Send,
TPriority: Send,
TKey: Send,
TPriority: Send,
impl<'a, TKey, TPriority> Sync for OccupiedEntry<'a, TKey, TPriority> where
TKey: Sync,
TPriority: Sync,
TKey: Sync,
TPriority: Sync,
impl<'a, TKey, TPriority> Unpin for OccupiedEntry<'a, TKey, TPriority>
impl<'a, TKey, TPriority> !UnwindSafe for OccupiedEntry<'a, TKey, TPriority>
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,
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.
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>,