Struct OpenCvWalker

Source
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>

Source

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>

Source§

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<()>

Pass a supported Entity to the visitor
Source§

fn goodbye(self)

Called at the end of the visitation

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.