Struct keyed_priority_queue::OccupiedEntry[][src]

pub struct OccupiedEntry<'a, TKey, TPriority, S = RandomState> where
    TKey: 'a + Eq + Hash,
    TPriority: 'a + Ord,
    S: BuildHasher
{ /* fields omitted */ }
Expand description

A view into an occupied entry in a KeyedPriorityQueue. It is part of the Entry enum.

Implementations

Returns reference to the priority associated to entry

Time complexity

O(1) instant access

Changes priority of key and returns old priority

Time complexity

Up to O(log n) operations in worst case O(1) in best case

Get the reference to actual key

Time complexity

O(1) instant access

Remove entry from queue

Time complexity

Up to O(log n) operations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.