Enum jsonc_parser::ast::Node
source · [−]pub enum Node<'a, 'b> {
StringLit(&'b StringLit<'a>),
NumberLit(&'b NumberLit<'a>),
BooleanLit(&'b BooleanLit),
Object(&'b Object<'a>),
ObjectProp(&'b ObjectProp<'a>),
Array(&'b Array<'a>),
NullKeyword(&'b NullKeyword),
WordLit(&'b WordLit<'a>),
}
Expand description
Node that can appear in the AST.
Variants
StringLit(&'b StringLit<'a>)
NumberLit(&'b NumberLit<'a>)
BooleanLit(&'b BooleanLit)
Object(&'b Object<'a>)
ObjectProp(&'b ObjectProp<'a>)
Array(&'b Array<'a>)
NullKeyword(&'b NullKeyword)
WordLit(&'b WordLit<'a>)
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Gets the line number of the start position in the text.
Gets the start position.
Gets the end byte position.
Auto Trait Implementations
impl<'a, 'b> RefUnwindSafe for Node<'a, 'b>
impl<'a, 'b> UnwindSafe for Node<'a, 'b>
Blanket Implementations
Mutably borrows from an owned value. Read more