[][src]Struct hopscotch::ItemMut

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

A mutable reference to an item currently in the queue.

Implementations

impl<'a, K: Ord, V> ItemMut<'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_mut(&mut self) -> &mut V[src]

Get a mutable reference to the value contained in this item.

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

Extract a mutable reference to the value whose lifetime is tied to the entire queue, not this Item.

Trait Implementations

impl<'_, K: Ord, V> AsMut<V> for ItemMut<'_, K, V>[src]

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

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

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

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

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

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

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

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

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

Auto Trait Implementations

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

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

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

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

impl<'a, K, V> !UnwindSafe for ItemMut<'a, K, V>

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.