pub struct ParseResult<'a> {
pub comments: Option<CommentMap<'a>>,
pub value: Option<Value<'a>>,
pub tokens: Option<Vec<TokenAndRange<'a>>>,
}
Expand description
Result of parsing the text.
Fields§
§comments: Option<CommentMap<'a>>
Collection of comments in the text.
Provide comments: true
to the ParseOptions
for this to have a value.
Remarks: The key is the start and end position of the tokens.
value: Option<Value<'a>>
The JSON value the text contained.
tokens: Option<Vec<TokenAndRange<'a>>>
Collection of tokens (excluding any comments).
Provide tokens: true
to the ParseOptions
for this to have a value.
Auto Trait Implementations§
impl<'a> Freeze for ParseResult<'a>
impl<'a> RefUnwindSafe for ParseResult<'a>
impl<'a> !Send for ParseResult<'a>
impl<'a> !Sync for ParseResult<'a>
impl<'a> Unpin for ParseResult<'a>
impl<'a> UnwindSafe for ParseResult<'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