[][src]Struct hopscotch::Item

pub struct Item<'a, K, V> { /* fields omitted */ }

An immutable reference to an item currently in the queue.

Implementations

impl<'a, K, V> Item<'a, K, V>[src]

pub fn index(&self) -> u64[src]

The index of the item: this is unique for the entire lifetime of the queue from which this item originated.

pub fn tag(&self) -> &K[src]

The tag of the item which was originally assigned when the item was inserted into the queue.

pub fn value(&self) -> &'a V[src]

Get an immutable reference to the value contained in this item.

Trait Implementations

impl<'_, K: Ord, V> AsRef<V> for Item<'_, K, V>[src]

impl<'a, K: Clone, V: Clone> Clone for Item<'a, K, V>[src]

impl<'a, K: Debug, V: Debug> Debug for Item<'a, K, V>[src]

impl<'a, K: Eq, V: Eq> Eq for Item<'a, K, V>[src]

impl<'a, K: Hash, V: Hash> Hash for Item<'a, K, V>[src]

impl<'a, K: Ord, V: Ord> Ord for Item<'a, K, V>[src]

impl<'a, K: PartialEq, V: PartialEq> PartialEq<Item<'a, K, V>> for Item<'a, K, V>[src]

impl<'a, K: PartialOrd, V: PartialOrd> PartialOrd<Item<'a, K, V>> for Item<'a, K, V>[src]

impl<'a, K, V> StructuralEq for Item<'a, K, V>[src]

impl<'a, K, V> StructuralPartialEq for Item<'a, K, V>[src]

Auto Trait Implementations

impl<'a, K, V> RefUnwindSafe for Item<'a, K, V> where
    K: RefUnwindSafe,
    V: RefUnwindSafe

impl<'a, K, V> Send for Item<'a, K, V> where
    K: Sync,
    V: Sync

impl<'a, K, V> Sync for Item<'a, K, V> where
    K: Sync,
    V: Sync

impl<'a, K, V> Unpin for Item<'a, K, V>

impl<'a, K, V> UnwindSafe for Item<'a, K, V> where
    K: RefUnwindSafe,
    V: RefUnwindSafe

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.