pub struct Mapx<K, V> { /* private fields */ }
Implementations§
Source§impl<K, V> Mapx<K, V>
impl<K, V> Mapx<K, V>
Sourcepub unsafe fn shadow(&self) -> Self
pub unsafe fn shadow(&self) -> Self
§Safety
This API breaks the semantic safety guarantees, but it is safe to use in a race-free environment.
Sourcepub unsafe fn from_bytes(s: impl AsRef<[u8]>) -> Self
pub unsafe fn from_bytes(s: impl AsRef<[u8]>) -> Self
§Safety
Do not use this API unless you know the internal details extremely well.
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn new() -> Self
pub fn get(&self, key: &K) -> Option<V>
pub fn get_mut(&mut self, key: &K) -> Option<ValueMut<'_, V>>
pub fn contains_key(&self, key: &K) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn insert(&mut self, key: &K, value: &V) -> Option<V>
pub fn set_value(&mut self, key: &K, value: &V)
pub fn entry(&mut self, key: &K) -> Entry<'_, V>
pub fn iter(&self) -> MapxIter<'_, K, V> ⓘ
pub fn iter_mut(&mut self) -> MapxIterMut<'_, K, V> ⓘ
pub fn values(&self) -> MapxOrdValues<'_, V> ⓘ
pub fn values_mut(&mut self) -> MapxOrdValuesMut<'_, V> ⓘ
pub fn remove(&mut self, key: &K) -> Option<V>
pub fn unset_value(&mut self, key: &K)
pub fn clear(&mut self)
pub fn is_the_same_instance(&self, other_hdr: &Self) -> bool
Trait Implementations§
Source§impl<'de, K, V> Deserialize<'de> for Mapx<K, V>
impl<'de, K, V> Deserialize<'de> for Mapx<K, V>
Source§fn 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
impl<K: Eq, V: Eq> Eq for Mapx<K, V>
impl<K, V> StructuralPartialEq for Mapx<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for Mapx<K, V>
impl<K, V> RefUnwindSafe for Mapx<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Mapx<K, V>
impl<K, V> Sync for Mapx<K, V>
impl<K, V> Unpin for Mapx<K, V>
impl<K, V> UnwindSafe for Mapx<K, V>where
K: UnwindSafe,
V: 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