pub trait BasicNode<'a>: Debug + AcceptVisitor<'a> + ForEachChild<'a> + ForEachNode<'a> {
    fn type_name(&self) -> &'static str;
fn as_all(&'a self) -> AllNode<'a>;
fn as_any(&'a self) -> &'a dyn AnyNode<'a>; }
Expand description

Basic attributes of an AST node.

If this trait is present on Node<T>, then Node<T> will automatically implement the full AnyNode trait.

Required methods

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Implementors