Trait filter_ast::visit::Visit [−][src]
pub trait Visit<'ast, F, P, O> {
fn visit_clause(&mut self, clause: &'ast Clause<F, P, O>) { ... }
fn visit_tree(&mut self, tree: &'ast Tree<Expr<F, P, O>>) { ... }
fn visit_expr(&mut self, expr: &'ast Expr<F, P, O>) { ... }
}
Expand description
Visitor for a filter expression.
Provided methods
fn visit_clause(&mut self, clause: &'ast Clause<F, P, O>)
fn visit_clause(&mut self, clause: &'ast Clause<F, P, O>)
Visit a leaf node in the filter expression.
fn visit_tree(&mut self, tree: &'ast Tree<Expr<F, P, O>>)
fn visit_tree(&mut self, tree: &'ast Tree<Expr<F, P, O>>)
Visit a compound filter. The default implementation will visit each sub-expression in declaration order.
fn visit_expr(&mut self, expr: &'ast Expr<F, P, O>)
fn visit_expr(&mut self, expr: &'ast Expr<F, P, O>)
Visit a filter expression. By default this will dispatch to the visit
method which
matches the expression variant.