Trait AstVisitable

Source
pub trait AstVisitable: Clone {
    // Required method
    fn accept<V: AstVisitor>(&self, visitor: &mut V) -> V::Output;
}
Expand description

Trait for all AST nodes.

Required Methods§

Source

fn accept<V: AstVisitor>(&self, visitor: &mut V) -> V::Output

Accepts a visitor for the AST node.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§