[−][src]Struct hopscotch::ItemMut
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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a, K: Ord, V: Ord> Ord for ItemMut<'a, K, V>
[src]
fn cmp(&self, other: &ItemMut<'a, K, V>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<'a, K: PartialEq, V: PartialEq> PartialEq<ItemMut<'a, K, V>> for ItemMut<'a, K, V>
[src]
fn eq(&self, other: &ItemMut<'a, K, V>) -> bool
[src]
fn ne(&self, other: &ItemMut<'a, K, V>) -> bool
[src]
impl<'a, K: PartialOrd, V: PartialOrd> PartialOrd<ItemMut<'a, K, V>> for ItemMut<'a, K, V>
[src]
fn partial_cmp(&self, other: &ItemMut<'a, K, V>) -> Option<Ordering>
[src]
fn lt(&self, other: &ItemMut<'a, K, V>) -> bool
[src]
fn le(&self, other: &ItemMut<'a, K, V>) -> bool
[src]
fn gt(&self, other: &ItemMut<'a, K, V>) -> bool
[src]
fn ge(&self, other: &ItemMut<'a, K, V>) -> bool
[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,
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, K, V> Send for ItemMut<'a, K, V> where
K: Sync,
V: Send,
K: Sync,
V: Send,
impl<'a, K, V> Sync for ItemMut<'a, K, V> where
K: Sync,
V: Sync,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,