pub struct ASTNode { /* private fields */ }
Expand description
Describes a node in an Abstract Syntax Tree.
We can imagine an AST to look like a tree from a root-down approach:
ⓘ
AST:
[Root Token]
[LToken] [RToken]
[...] [...] [...]
Looking at any node in the tree, we see that it consists of its own value and 0-2 children. Thus, we define an ASTNode to be a Token with up to two neighboring ASTNodes.
Implementations§
Auto Trait Implementations§
impl Freeze for ASTNode
impl RefUnwindSafe for ASTNode
impl Send for ASTNode
impl Sync for ASTNode
impl Unpin for ASTNode
impl UnwindSafe for ASTNode
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