Trait Visit
pub trait Visit {
// Required method
fn visit<V>(&self, visitor: &mut V) -> ControlFlow<<V as Visitor>::Break>
where V: Visitor;
}
Expand description
A type that can be visited by a Visitor. See Visitor for
recursively visiting parsed SQL statements.
§Note
This trait should be automatically derived for sqlparser AST nodes
using the Visit proc macro.
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
Visit this node with the provided Visitor.
Implementations should call the appropriate visitor hooks to traverse
child nodes and return a ControlFlow value to allow early exit.
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.