pub struct Document { /* private fields */ }Implementations§
Trait Implementations§
source§impl JsonValue for Document
impl JsonValue for Document
type ValueType<'dom> = &'dom Value<'dom> where Self: 'dom
source§fn as_number(&self) -> Option<Number>
fn as_number(&self) -> Option<Number>
Returns the
Number value of the JsonValue if it is a Number.source§fn get<I: Index>(&self, index: I) -> Option<Self::ValueType<'_>>
fn get<I: Index>(&self, index: I) -> Option<Self::ValueType<'_>>
Returns the value from index if the
JsonValue is an array or object
The index may be usize or &str. The usize is for array, the &str is for object.source§fn pointer(&self, path: &JsonPointer<'_>) -> Option<Self::ValueType<'_>>
fn pointer(&self, path: &JsonPointer<'_>) -> Option<Self::ValueType<'_>>
Returns the value from pointer path if the
JsonValue is an array or objectsource§fn is_boolean(&self) -> bool
fn is_boolean(&self) -> bool
Returns true if the
JsonValue is a bool.Auto Trait Implementations§
impl !RefUnwindSafe for Document
impl !Send for Document
impl !Sync for Document
impl Unpin for Document
impl !UnwindSafe for Document
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