pub struct Document<S> { /* private fields */ }Implementations§
Source§impl<S: AsRef<str>> Document<S>
impl<S: AsRef<str>> Document<S>
pub fn parse(source: S) -> Result<Self>
pub fn root(&self) -> &Value
pub fn slice(&self, range: Range<usize>) -> &str
pub fn get_object_value<'a>( &self, entries: &'a ObjectEntries, key: &str, ) -> Option<&'a Value>
pub fn as_str<'a>(&'a self, value: &Value) -> Option<&'a str>
pub fn parse_f64(&self, value: &Value) -> Option<f64>
Trait Implementations§
Source§impl<S: PartialEq> PartialEq for Document<S>
impl<S: PartialEq> PartialEq for Document<S>
impl<S: Eq> Eq for Document<S>
impl<S> StructuralPartialEq for Document<S>
Auto Trait Implementations§
impl<S> Freeze for Document<S>where
S: Freeze,
impl<S> RefUnwindSafe for Document<S>where
S: RefUnwindSafe,
impl<S> Send for Document<S>where
S: Send,
impl<S> Sync for Document<S>where
S: Sync,
impl<S> Unpin for Document<S>where
S: Unpin,
impl<S> UnsafeUnpin for Document<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Document<S>where
S: UnwindSafe,
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