pub struct KvPair<K, V> {
pub key: K,
pub val: V,
}
Fields
key: K
val: V
Trait Implementations
Auto Trait Implementations
impl<K, V> RefUnwindSafe for KvPair<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for KvPair<K, V> where
K: Send,
V: Send,
impl<K, V> Sync for KvPair<K, V> where
K: Sync,
V: Sync,
impl<K, V> Unpin for KvPair<K, V> where
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for KvPair<K, V> where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> EncodeToVec for T where
T: Canon,
impl<T> EncodeToVec for T where
T: Canon,
sourcepub fn encode_to_vec(&self) -> Vec<u8, Global>
pub fn encode_to_vec(&self) -> Vec<u8, Global>
Encode Self
into a buffer
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more