Struct RustNativeBindingWriter

Source
pub struct RustNativeBindingWriter<'s> { /* private fields */ }
Expand description

Writer of the source files used when building OpenCV to run on a native platform (as opposed to for example WASM)

Implementations§

Source§

impl<'s> RustNativeBindingWriter<'s>

Source

pub fn new( src_cpp_dir: &Path, out_dir: impl Into<PathBuf>, module: SupportedModule, opencv_version: &'s str, debug: bool, ) -> Self

Trait Implementations§

Source§

impl<'s> Clone for RustNativeBindingWriter<'s>

Source§

fn clone(&self) -> RustNativeBindingWriter<'s>

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'s> Debug for RustNativeBindingWriter<'s>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl GeneratorVisitor<'_> for RustNativeBindingWriter<'_>

Source§

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

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

fn visit_module_comment(&mut self, comment: String)

Top-level module comment
Source§

fn visit_const(&mut self, cnst: Const<'_>)

Top-level constant
Source§

fn visit_enum(&mut self, enm: Enum<'_>)

Top-level enum
Source§

fn visit_func(&mut self, func: Func<'_, '_>)

Top-level function
Source§

fn visit_typedef(&mut self, typedef: Typedef<'_, '_>)

Top-level type alias
Source§

fn visit_class(&mut self, class: Class<'_, '_>)

Top-level class or an internal class of another class
Source§

fn visit_generated_type(&mut self, typ: GeneratedType<'_, '_>)

Dependent generated type like std::vector<Mat> or std::tuple<1, 2, 3>
Source§

fn goodbye(self)

Called at the end of the visitation

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.