Struct simdjson_rust::ondemand::Object
source · 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> 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