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§
source§impl<'a, 'b> From<&'b BooleanLit> for Node<'a, 'b>
impl<'a, 'b> From<&'b BooleanLit> for Node<'a, 'b>
source§fn from(node: &'b BooleanLit) -> Node<'a, 'b>
fn from(node: &'b BooleanLit) -> Node<'a, 'b>
Converts to this type from the input type.
source§impl<'a, 'b> From<&'b NullKeyword> for Node<'a, 'b>
impl<'a, 'b> From<&'b NullKeyword> for Node<'a, 'b>
source§fn from(node: &'b NullKeyword) -> Node<'a, 'b>
fn from(node: &'b NullKeyword) -> Node<'a, 'b>
Converts to this type from the input type.
source§impl<'a, 'b> From<&'b ObjectProp<'a>> for Node<'a, 'b>
impl<'a, 'b> From<&'b ObjectProp<'a>> for Node<'a, 'b>
source§fn from(node: &'b ObjectProp<'a>) -> Node<'a, 'b>
fn from(node: &'b ObjectProp<'a>) -> Node<'a, 'b>
Converts to this type from the input type.
source§impl<'a, 'b> From<&'b ObjectPropName<'a>> for Node<'a, 'b>
impl<'a, 'b> From<&'b ObjectPropName<'a>> for Node<'a, 'b>
source§fn from(object_prop_name: &'b ObjectPropName<'a>) -> Node<'a, 'b>
fn from(object_prop_name: &'b ObjectPropName<'a>) -> Node<'a, 'b>
Converts to this type from the input type.
source§impl<'a, 'b> PartialEq<Node<'a, 'b>> for Node<'a, 'b>
impl<'a, 'b> PartialEq<Node<'a, 'b>> for Node<'a, 'b>
impl<'a, 'b> StructuralPartialEq for Node<'a, 'b>
Auto Trait Implementations§
impl<'a, 'b> RefUnwindSafe for Node<'a, 'b>
impl<'a, 'b> Send for Node<'a, 'b>
impl<'a, 'b> Sync for Node<'a, 'b>
impl<'a, 'b> Unpin for Node<'a, 'b>where 'a: 'b,
impl<'a, 'b> UnwindSafe for Node<'a, 'b>
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