pub struct Pair<K, V> {
pub key: K,
pub value: V,
}Fields§
§key: K§value: VTrait Implementations§
impl<K, V> Eq for Pair<K, V>where
K: Ord,
Source§impl<K, V> From<OrdMultiPair<K, V>> for Pair<K, V>
impl<K, V> From<OrdMultiPair<K, V>> for Pair<K, V>
Source§fn from(pair: OrdMultiPair<K, V>) -> Self
fn from(pair: OrdMultiPair<K, V>) -> Self
Converts to this type from the input type.
Source§impl<K, V> From<Pair<K, V>> for OrdMultiPair<K, V>
impl<K, V> From<Pair<K, V>> for OrdMultiPair<K, V>
Source§impl<K, V> Ord for Pair<K, V>where
K: Ord,
impl<K, V> Ord for Pair<K, V>where
K: Ord,
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, V> PartialOrd for Pair<K, V>where
K: Ord,
impl<K, V> PartialOrd for Pair<K, V>where
K: Ord,
Auto Trait Implementations§
impl<K, V> Freeze for Pair<K, V>
impl<K, V> RefUnwindSafe for Pair<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Pair<K, V>
impl<K, V> Sync for Pair<K, V>
impl<K, V> Unpin for Pair<K, V>
impl<K, V> UnsafeUnpin for Pair<K, V>where
K: UnsafeUnpin,
V: UnsafeUnpin,
impl<K, V> UnwindSafe for Pair<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