Enum keyed_priority_queue::Entry[][src]

pub enum Entry<'a, TKey: Eq + Hash, TPriority: Ord, S: BuildHasher> {
    Occupied(OccupiedEntry<'a, TKey, TPriority, S>),
    Vacant(VacantEntry<'a, TKey, TPriority, S>),
}

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> RefUnwindSafe for Entry<'a, TKey, TPriority, S> where
    S: RefUnwindSafe,
    TKey: RefUnwindSafe,
    TPriority: RefUnwindSafe
[src]

impl<'a, TKey, TPriority, S> !Send for Entry<'a, TKey, TPriority, S>[src]

impl<'a, TKey, TPriority, S> !Sync for Entry<'a, TKey, TPriority, S>[src]

impl<'a, TKey, TPriority, S> Unpin for Entry<'a, TKey, TPriority, S> where
    TKey: Unpin
[src]

impl<'a, TKey, TPriority, S> !UnwindSafe for Entry<'a, TKey, TPriority, S>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.