pub struct Object<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Object<'a>
impl<'a> Object<'a>
pub fn new(ptr: NonNull<SJ_OD_object>) -> Self
pub fn at_pointer(&mut self, json_pointer: &str) -> Result<Value<'a>>
pub fn iter(&mut self) -> Result<ObjectIterator<'a>>
pub fn raw_json(&mut self) -> Result<&'a str>
pub fn find_field(&mut self, key: &str) -> Result<Value<'a>>
pub fn find_field_unordered(&mut self, key: &str) -> Result<Value<'a>>
pub fn count_fields(&mut self) -> Result<usize>
pub fn is_empty(&mut self) -> Result<bool>
pub fn reset(&mut self) -> Result<bool>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Object<'a>
impl<'a> RefUnwindSafe for Object<'a>
impl<'a> !Send for Object<'a>
impl<'a> !Sync for Object<'a>
impl<'a> Unpin for Object<'a>
impl<'a> !UnwindSafe for Object<'a>
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