Struct lunarity_ast::Node
source · pub struct Node<'ast, T: 'ast> { /* private fields */ }
Expand description
Node
is a specialized Cell
that holds a reference to T instead of T.
Node
has defined lifetime and implements Defer<Target = T>
for convenience.
Implementations§
Trait Implementations§
source§impl<'ast> From<Node<'ast, Expression<'ast>>> for SimpleStatement<'ast>
impl<'ast> From<Node<'ast, Expression<'ast>>> for SimpleStatement<'ast>
source§fn from(val: ExpressionNode<'ast>) -> Self
fn from(val: ExpressionNode<'ast>) -> Self
Converts to this type from the input type.
source§impl<'ast> From<Node<'ast, Expression<'ast>>> for Statement<'ast>
impl<'ast> From<Node<'ast, Expression<'ast>>> for Statement<'ast>
source§fn from(val: ExpressionNode<'ast>) -> Self
fn from(val: ExpressionNode<'ast>) -> Self
Converts to this type from the input type.