[][src]Enum keyed_priority_queue::Entry

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

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>)

An occupied entry.

Vacant(VacantEntry<'a, TKey, TPriority>)

A vacant entry.

Auto Trait Implementations

impl<'a, TKey, TPriority> RefUnwindSafe for Entry<'a, TKey, TPriority> where
    TKey: RefUnwindSafe,
    TPriority: RefUnwindSafe

impl<'a, TKey, TPriority> Send for Entry<'a, TKey, TPriority> where
    TKey: Send,
    TPriority: Send

impl<'a, TKey, TPriority> Sync for Entry<'a, TKey, TPriority> where
    TKey: Sync,
    TPriority: Sync

impl<'a, TKey, TPriority> Unpin for Entry<'a, TKey, TPriority>

impl<'a, TKey, TPriority> !UnwindSafe for Entry<'a, TKey, TPriority>

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.