pub struct HashTableRowValueOwned<'t, K, V> { /* private fields */ }Expand description
HashTable row that takes ownership over the row’s values.
If you want the keys to be owned too, you can do so by iterating over this row and cloning the
values and then collecting into a hashmap, which is done in the implkementation of the From
trait
Implementations§
Trait Implementations§
Source§impl<'t, K, V: Clone> Clone for HashTableRowValueOwned<'t, K, V>
impl<'t, K, V: Clone> Clone for HashTableRowValueOwned<'t, K, V>
Source§impl<'t, K, V, OwnedK> From<HashTableRowValueOwned<'t, K, V>> for HashMap<OwnedK, V>
impl<'t, K, V, OwnedK> From<HashTableRowValueOwned<'t, K, V>> for HashMap<OwnedK, V>
Source§fn from(row: HashTableRowValueOwned<'t, K, V>) -> Self
fn from(row: HashTableRowValueOwned<'t, K, V>) -> Self
Converts to this type from the input type.
Source§impl<'t, K, V> IntoIterator for HashTableRowValueOwned<'t, K, V>
impl<'t, K, V> IntoIterator for HashTableRowValueOwned<'t, K, V>
Auto Trait Implementations§
impl<'t, K, V> Freeze for HashTableRowValueOwned<'t, K, V>
impl<'t, K, V> RefUnwindSafe for HashTableRowValueOwned<'t, K, V>where
V: RefUnwindSafe,
K: RefUnwindSafe,
impl<'t, K, V> Send for HashTableRowValueOwned<'t, K, V>
impl<'t, K, V> Sync for HashTableRowValueOwned<'t, K, V>
impl<'t, K, V> Unpin for HashTableRowValueOwned<'t, K, V>where
V: Unpin,
impl<'t, K, V> UnwindSafe for HashTableRowValueOwned<'t, K, V>where
V: UnwindSafe,
K: RefUnwindSafe,
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