pub struct Item<K, V> {
pub key: K,
pub value: V,
}Fields§
§key: K§value: VImplementations§
Trait Implementations§
source§impl<K: Ord, V> Ord for Item<K, V>
impl<K: Ord, V> Ord for Item<K, V>
source§impl<K: PartialEq, V> PartialEq for Item<K, V>
impl<K: PartialEq, V> PartialEq for Item<K, V>
source§impl<K: PartialOrd, V> PartialOrd for Item<K, V>
impl<K: PartialOrd, V> PartialOrd for Item<K, V>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<K: Eq, V> Eq for Item<K, V>
Auto Trait Implementations§
impl<K, V> RefUnwindSafe for Item<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Item<K, V>
impl<K, V> Sync for Item<K, V>
impl<K, V> Unpin for Item<K, V>
impl<K, V> UnwindSafe for Item<K, V>where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more