pub struct KVPair<KT, VT> {
pub key: KT,
pub val: VT,
}Expand description
A key-value pair:
Fields§
§key: KT§val: VTTrait Implementations§
Source§impl<KT: Ord + Eq, VT> Ord for KVPair<KT, VT>
impl<KT: Ord + Eq, VT> Ord for KVPair<KT, VT>
Source§impl<KT: PartialOrd + Eq, VT> PartialOrd for KVPair<KT, VT>
impl<KT: PartialOrd + Eq, VT> PartialOrd for KVPair<KT, VT>
impl<KT: Eq, VT> Eq for KVPair<KT, VT>
Auto Trait Implementations§
impl<KT, VT> Freeze for KVPair<KT, VT>
impl<KT, VT> RefUnwindSafe for KVPair<KT, VT>where
KT: RefUnwindSafe,
VT: RefUnwindSafe,
impl<KT, VT> Send for KVPair<KT, VT>
impl<KT, VT> Sync for KVPair<KT, VT>
impl<KT, VT> Unpin for KVPair<KT, VT>
impl<KT, VT> UnsafeUnpin for KVPair<KT, VT>where
KT: UnsafeUnpin,
VT: UnsafeUnpin,
impl<KT, VT> UnwindSafe for KVPair<KT, VT>where
KT: UnwindSafe,
VT: 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