pub struct ObjectRef(/* private fields */);
Expand description
A key-value object, typically shown as a dictionary
Implementations§
Source§impl ObjectRef
impl ObjectRef
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, key: &str) -> PtrRef
pub fn set(&mut self, key: &str, value: PtrRef)
pub fn remove(&mut self, key: &str)
pub fn keys(&self) -> ArrayRef ⓘ
pub fn values(&self) -> ArrayRef ⓘ
pub fn ptr(&self) -> i32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ObjectRef
impl RefUnwindSafe for ObjectRef
impl Send for ObjectRef
impl Sync for ObjectRef
impl Unpin for ObjectRef
impl UnwindSafe for ObjectRef
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