pub trait EntityWalkerVisitor<'tu> {
    // Required method
    fn visit_entity(&mut self, entity: Entity<'tu>) -> ControlFlow<()>;

    // Provided method
    fn wants_file(&mut self, path: &Path) -> bool { ... }
}
Expand description

Visitor to be used in conjunction with [EntityWalker]

Required Methods§

source

fn visit_entity(&mut self, entity: Entity<'tu>) -> ControlFlow<()>

Pass a supported Entity to the visitor

Provided Methods§

source

fn wants_file(&mut self, path: &Path) -> bool

Check whether the visitor is interested in entities from the specified file

Implementors§