pub trait Visitable: Sanitize + Validate {
// Provided methods
fn drive(&self, _: &mut dyn VisitorCore) { ... }
fn drive_mut(&mut self, _: &mut dyn VisitorMutCore) { ... }
}Expand description
A node that participates in visitor-based traversal.
Invariants:
- Traversal is owned by the visitor, not by sanitize/validate hooks.
drive/drive_mutdescribe structure only.- No validation or sanitization logic lives here.