Expand description
A key-value tuple.
The partitioned relation is stored as a collection of Tuple<K, V>
.
Note that the struct’s layout must be kept in sync with its counterpart in C/C++.
Fields
key: Key
value: Value
Trait Implementations
sourceimpl<Key: PartialEq + Sized, Value: PartialEq + Sized> PartialEq<Tuple<Key, Value>> for Tuple<Key, Value>
impl<Key: PartialEq + Sized, Value: PartialEq + Sized> PartialEq<Tuple<Key, Value>> for Tuple<Key, Value>
impl<Key: Copy + Sized, Value: Copy + Sized> Copy for Tuple<Key, Value>
impl<K, V> DeviceCopy for Tuple<K, V> where
K: DeviceCopy,
V: DeviceCopy,
impl<Key: Eq + Sized, Value: Eq + Sized> Eq for Tuple<Key, Value>
impl<Key: Sized, Value: Sized> StructuralEq for Tuple<Key, Value>
impl<Key: Sized, Value: Sized> StructuralPartialEq for Tuple<Key, Value>
Auto Trait Implementations
impl<Key, Value> RefUnwindSafe for Tuple<Key, Value> where
Key: RefUnwindSafe,
Value: RefUnwindSafe,
impl<Key, Value> Send for Tuple<Key, Value> where
Key: Send,
Value: Send,
impl<Key, Value> Sync for Tuple<Key, Value> where
Key: Sync,
Value: Sync,
impl<Key, Value> Unpin for Tuple<Key, Value> where
Key: Unpin,
Value: Unpin,
impl<Key, Value> UnwindSafe for Tuple<Key, Value> where
Key: UnwindSafe,
Value: 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
impl<T> Pointable for T
impl<T> Pointable for T
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