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
Auto Trait Implementations§
impl<'tu, 'r, V> !Freeze for OpenCvWalker<'tu, 'r, V>
impl<'tu, 'r, V> !RefUnwindSafe for OpenCvWalker<'tu, 'r, V>
impl<'tu, 'r, V> !Send for OpenCvWalker<'tu, 'r, V>
impl<'tu, 'r, V> !Sync for OpenCvWalker<'tu, 'r, V>
impl<'tu, 'r, V> Unpin for OpenCvWalker<'tu, 'r, V>where
V: Unpin,
impl<'tu, 'r, V> UnwindSafe for OpenCvWalker<'tu, 'r, V>where
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more