Struct vsdb::basic_multi_key::mapx_double_key::MapxDk
source · [−]pub struct MapxDk<K1, K2, V> { /* private fields */ }Expand description
A map structure with two-level keys.
Implementations
sourceimpl<K1, K2, V> MapxDk<K1, K2, V> where
K1: KeyEnDe,
K2: KeyEnDe,
V: ValueEnDe,
impl<K1, K2, V> MapxDk<K1, K2, V> where
K1: KeyEnDe,
K2: KeyEnDe,
V: ValueEnDe,
pub fn new() -> Self
pub fn get(&self, key: &(&K1, &K2)) -> Option<V>
pub fn get_mut<'a>(
&'a self,
key: &'a (&'a K1, &'a K2)
) -> Option<ValueMut<'a, K1, K2, V>>
pub fn contains_key(&self, key: &(&K1, &K2)) -> bool
pub fn is_empty(&self) -> bool
pub fn entry_ref<'a>(
&'a self,
key: &'a (&'a K1, &'a K2)
) -> Entry<'a, K1, K2, V>
pub fn insert(&self, key: &(&K1, &K2), value: &V) -> Option<V>
pub fn clear(&self)
pub fn key_size(&self) -> usize
Trait Implementations
sourceimpl<'de, K1, K2, V> Deserialize<'de> for MapxDk<K1, K2, V>
impl<'de, K1, K2, V> Deserialize<'de> for MapxDk<K1, K2, V>
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<K1: PartialEq, K2: PartialEq, V: PartialEq> PartialEq<MapxDk<K1, K2, V>> for MapxDk<K1, K2, V>
impl<K1: PartialEq, K2: PartialEq, V: PartialEq> PartialEq<MapxDk<K1, K2, V>> for MapxDk<K1, K2, V>
impl<K1: Copy, K2: Copy, V: Copy> Copy for MapxDk<K1, K2, V>
impl<K1: Eq, K2: Eq, V: Eq> Eq for MapxDk<K1, K2, V>
impl<K1, K2, V> StructuralEq for MapxDk<K1, K2, V>
impl<K1, K2, V> StructuralPartialEq for MapxDk<K1, K2, V>
Auto Trait Implementations
impl<K1, K2, V> RefUnwindSafe for MapxDk<K1, K2, V> where
K1: RefUnwindSafe,
K2: RefUnwindSafe,
V: RefUnwindSafe,
impl<K1, K2, V> Send for MapxDk<K1, K2, V> where
K1: Send,
K2: Send,
V: Send,
impl<K1, K2, V> Sync for MapxDk<K1, K2, V> where
K1: Sync,
K2: Sync,
V: Sync,
impl<K1, K2, V> Unpin for MapxDk<K1, K2, V> where
K1: Unpin,
K2: Unpin,
V: Unpin,
impl<K1, K2, V> UnwindSafe for MapxDk<K1, K2, V> where
K1: UnwindSafe,
K2: 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 · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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.
sourcefn clone_into(&self, target: &mut T)
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