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
sourceimpl<'a, 'b> From<&'b BooleanLit> for Node<'a, 'b>
impl<'a, 'b> From<&'b BooleanLit> for Node<'a, 'b>
sourcefn from(node: &'b BooleanLit) -> Node<'a, 'b>
fn from(node: &'b BooleanLit) -> Node<'a, 'b>
Converts to this type from the input type.
sourceimpl<'a, 'b> From<&'b NullKeyword> for Node<'a, 'b>
impl<'a, 'b> From<&'b NullKeyword> for Node<'a, 'b>
sourcefn from(node: &'b NullKeyword) -> Node<'a, 'b>
fn from(node: &'b NullKeyword) -> Node<'a, 'b>
Converts to this type from the input type.
sourceimpl<'a, 'b> From<&'b ObjectProp<'a>> for Node<'a, 'b>
impl<'a, 'b> From<&'b ObjectProp<'a>> for Node<'a, 'b>
sourcefn 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.
sourceimpl<'a, 'b> From<&'b ObjectPropName<'a>> for Node<'a, 'b>
impl<'a, 'b> From<&'b ObjectPropName<'a>> for Node<'a, 'b>
sourcefn 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.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more