pub trait EntityWalkerVisitor<'tu> {
// Required method
fn visit_entity(&mut self, entity: Entity<'tu>) -> WalkAction;
// Provided method
fn wants_file(&mut self, path: &Path) -> bool { ... }
}
Expand description
Visitor to be used in conjunction with [EntityWalker]
Required Methods§
sourcefn visit_entity(&mut self, entity: Entity<'tu>) -> WalkAction
fn visit_entity(&mut self, entity: Entity<'tu>) -> WalkAction
Pass a supported Entity to the visitor
Provided Methods§
sourcefn wants_file(&mut self, path: &Path) -> bool
fn wants_file(&mut self, path: &Path) -> bool
Check whether the visitor is interested in entities from the specified file