pub struct KV<K, V>{
pub k: K::Owned,
pub v: V::Owned,
}
Expand description
A key-value pair.
Fields§
§k: K::Owned
The key
v: V::Owned
The value
Implementations§
Trait Implementations§
source§impl<K, V, KMatcher, VMatcher> Matcher<KV<K, V>> for (KMatcher, VMatcher)
impl<K, V, KMatcher, VMatcher> Matcher<KV<K, V>> for (KMatcher, VMatcher)
source§impl<K, V> PartialEq for KV<K, V>
impl<K, V> PartialEq for KV<K, V>
source§impl<K, V> PartialOrd for KV<K, V>where
Self: Sized,
K: ToOwned + ?Sized + PartialOrd,
V: ToOwned + ?Sized + PartialOrd,
K::Owned: PartialOrd,
V::Owned: PartialOrd,
impl<K, V> PartialOrd for KV<K, V>where
Self: Sized,
K: ToOwned + ?Sized + PartialOrd,
V: ToOwned + ?Sized + PartialOrd,
K::Owned: PartialOrd,
V::Owned: PartialOrd,
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, V> StructuralPartialEq for KV<K, V>
Auto Trait Implementations§
impl<K: ?Sized, V: ?Sized> RefUnwindSafe for KV<K, V>
impl<K: ?Sized, V: ?Sized> Send for KV<K, V>
impl<K: ?Sized, V: ?Sized> Sync for KV<K, V>
impl<K: ?Sized, V: ?Sized> Unpin for KV<K, V>
impl<K: ?Sized, V: ?Sized> UnwindSafe for KV<K, V>
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