pub struct VecxRaw { /* private fields */ }
Implementations§
source§impl VecxRaw
impl VecxRaw
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, idx: usize) -> Option<RawValue>
pub fn get_mut(&mut self, idx: usize) -> Option<ValueMut<'_, u64>>
pub fn last(&self) -> Option<RawValue>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn push(&mut self, v: impl AsRef<[u8]>)
pub fn insert(&mut self, idx: usize, v: impl AsRef<[u8]>)
pub fn pop(&mut self) -> Option<RawValue>
pub fn remove(&mut self, idx: usize) -> RawValue
pub fn swap_remove(&mut self, idx: usize) -> RawValue
pub fn update(&mut self, idx: usize, v: impl AsRef<[u8]>) -> Option<RawValue>
pub fn iter(&self) -> VecxRawIter<'_> ⓘ
pub fn iter_mut(&mut self) -> MapxOrdRawValueIterMut<'_, usize> ⓘ
pub fn clear(&mut self)
Trait Implementations§
source§impl<'de> Deserialize<'de> for VecxRaw
impl<'de> Deserialize<'de> for VecxRaw
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
source§impl PartialEq for VecxRaw
impl PartialEq for VecxRaw
impl Eq for VecxRaw
impl StructuralPartialEq for VecxRaw
Auto Trait Implementations§
impl Freeze for VecxRaw
impl RefUnwindSafe for VecxRaw
impl Send for VecxRaw
impl Sync for VecxRaw
impl Unpin for VecxRaw
impl UnwindSafe for VecxRaw
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