pub trait Walk: Any {
// Required method
fn walk(&self, visitor: &mut dyn Visitor) -> Result<()>;
}Expand description
Trait for AST nodes that can be walked by a visitor.
This trait is implemented by AST nodes that support visitor pattern traversal. It provides a way to walk through the AST structure and apply visitor operations to each node.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".