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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.