pub struct MapxRaw { /* private fields */ }
Implementations§
Source§impl MapxRaw
impl MapxRaw
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.
pub fn new() -> Self
pub fn get(&self, key: impl AsRef<[u8]>) -> Option<RawValue>
pub fn get_mut(&mut self, key: impl AsRef<[u8]>) -> Option<ValueMut<'_>>
pub fn gen_mut(&mut self, key: RawValue, value: RawValue) -> ValueMut<'_>
pub fn contains_key(&self, key: impl AsRef<[u8]>) -> bool
pub fn get_le(&self, key: &[u8]) -> Option<(RawKey, RawValue)>
pub fn get_ge(&self, key: &[u8]) -> Option<(RawKey, RawValue)>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn entry<'a>(&'a mut self, key: &'a [u8]) -> Entry<'a>
pub fn iter(&self) -> MapxRawIter<'_>
pub fn range<'a, R: RangeBounds<Cow<'a, [u8]>>>( &'a self, bounds: R, ) -> MapxRawIter<'_>
pub fn iter_mut(&mut self) -> MapxRawIterMut<'_>
pub fn range_mut<'a, R: RangeBounds<Cow<'a, [u8]>>>( &'a mut self, bounds: R, ) -> MapxRawIterMut<'_>
pub fn last(&self) -> Option<(RawKey, RawValue)>
pub fn insert( &mut self, key: impl AsRef<[u8]>, value: impl AsRef<[u8]>, ) -> Option<RawValue>
pub fn remove(&mut self, key: impl AsRef<[u8]>) -> Option<RawValue>
pub fn clear(&mut self)
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.
Sourcepub unsafe fn from_prefix_slice(s: impl AsRef<[u8]>) -> Self
pub unsafe fn from_prefix_slice(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 as_prefix_slice(&self) -> &[u8] ⓘ
pub fn is_the_same_instance(&self, other_hdr: &Self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MapxRaw
impl<'de> Deserialize<'de> for MapxRaw
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 Eq for MapxRaw
impl StructuralPartialEq for MapxRaw
Auto Trait Implementations§
impl Freeze for MapxRaw
impl RefUnwindSafe for MapxRaw
impl Send for MapxRaw
impl Sync for MapxRaw
impl Unpin for MapxRaw
impl UnwindSafe for MapxRaw
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