pub struct VariableNode {
pub parent: Option<NodeId>,
pub children: Vec<NodeId>,
pub begin_token: TokenId,
pub end_token: TokenId,
}Expand description
AST node for variable production
Fields§
§parent: Option<NodeId>Parent node (if any)
children: Vec<NodeId>Child nodes
begin_token: TokenIdFirst token of this node
end_token: TokenIdLast token of this node
Implementations§
Trait Implementations§
Source§impl Clone for VariableNode
impl Clone for VariableNode
Source§fn clone(&self) -> VariableNode
fn clone(&self) -> VariableNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VariableNode
impl RefUnwindSafe for VariableNode
impl Send for VariableNode
impl Sync for VariableNode
impl Unpin for VariableNode
impl UnsafeUnpin for VariableNode
impl UnwindSafe for VariableNode
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