pub struct ObjectMut<'dom>(/* private fields */);Expand description
ObjectMut is a mutable JSON object.
Implementations§
source§impl<'dom> ObjectMut<'dom>
impl<'dom> ObjectMut<'dom>
pub fn allocator(&self) -> &'dom Bump
pub fn is_empty(&self) -> bool
pub fn capacity(&self) -> usize
pub fn contains_key(&self, key: &str) -> bool
pub fn len(&self) -> usize
pub fn get(&'dom self, key: &str) -> Option<&Value<'dom>>
pub fn get_mut(&'dom mut self, key: &str) -> Option<ValueMut<'dom>>
pub fn insert(&mut self, k: &str, v: Value<'dom>) -> Option<Value<'dom>>
pub fn remove(&mut self, k: &str) -> Option<Value<'dom>>
pub fn pop(&mut self) -> Option<Value<'dom>>
pub fn reserve(&mut self, addtional: usize)
Trait Implementations§
Auto Trait Implementations§
impl<'dom> !RefUnwindSafe for ObjectMut<'dom>
impl<'dom> !Send for ObjectMut<'dom>
impl<'dom> !Sync for ObjectMut<'dom>
impl<'dom> Unpin for ObjectMut<'dom>
impl<'dom> !UnwindSafe for ObjectMut<'dom>
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