pub struct OpenCvWalker<'tu, 'r, V> { /* private fields */ }Expand description
Bridge between EntityWalkerVisitor and GeneratorVisitor
It takes Entitys supplied by the entity walker, extracts their export data (whether the entity should appear in bindings at all or is internal) and calls the corresponding method in GeneratorVisitor based on their type. This is the 2nd pass of the binding generation.
Implementations§
Source§impl<'tu, 'r, V: GeneratorVisitor<'tu>> OpenCvWalker<'tu, 'r, V>
impl<'tu, 'r, V: GeneratorVisitor<'tu>> OpenCvWalker<'tu, 'r, V>
pub fn new( module: SupportedModule, opencv_module_header_dir: &'r Path, visitor: V, gen_env: GeneratorEnv<'tu>, ) -> Self
Trait Implementations§
Source§impl<'tu, V: GeneratorVisitor<'tu>> EntityWalkerVisitor<'tu> for OpenCvWalker<'tu, '_, V>
impl<'tu, V: GeneratorVisitor<'tu>> EntityWalkerVisitor<'tu> for OpenCvWalker<'tu, '_, V>
Source§fn 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
Source§fn visit_entity(&mut self, entity: Entity<'tu>) -> ControlFlow<()>
fn visit_entity(&mut self, entity: Entity<'tu>) -> ControlFlow<()>
Pass a supported Entity to the visitor