pub struct MapEntry<K, V> {
pub key: K,
pub value: V,
}Expand description
struct MapEntry { K key; V value; } (XTypes 1.3 §7.4.1.1.4).
Fields§
§key: KThe key.
value: VThe value.
Implementations§
Trait Implementations§
impl<K: Copy, V: Copy> Copy for MapEntry<K, V>
impl<K: Eq, V: Eq> Eq for MapEntry<K, V>
Source§impl<K: Ord, V: Ord> Ord for MapEntry<K, V>
impl<K: Ord, V: Ord> Ord for MapEntry<K, V>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<K: PartialOrd, V: PartialOrd> PartialOrd for MapEntry<K, V>
impl<K: PartialOrd, V: PartialOrd> PartialOrd for MapEntry<K, V>
impl<K: PartialEq, V: PartialEq> StructuralPartialEq for MapEntry<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for MapEntry<K, V>
impl<K, V> RefUnwindSafe for MapEntry<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for MapEntry<K, V>
impl<K, V> Sync for MapEntry<K, V>
impl<K, V> Unpin for MapEntry<K, V>
impl<K, V> UnsafeUnpin for MapEntry<K, V>where
K: UnsafeUnpin,
V: UnsafeUnpin,
impl<K, V> UnwindSafe for MapEntry<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