Struct opencv_binding_generator::GeneratorEnv
source · pub struct GeneratorEnv<'tu> {
pub func_names: NamePool,
/* private fields */
}
Expand description
Generator environment or context, contains a global data (passed by immutable reference) for the binding generation
This is partially pre-populated in an additional pass before the generation to provide some necessary data that’s not available at the generation moment. E.g. list of descendants of a particular class.
Fields§
§func_names: NamePool
Implementations§
source§impl<'tu> GeneratorEnv<'tu>
impl<'tu> GeneratorEnv<'tu>
pub fn new(root_entity: Entity<'tu>, module: &'tu str) -> Self
pub fn make_export_config(&mut self, entity: Entity<'_>) -> &mut ExportConfig
pub fn get_export_config(&self, entity: Entity<'_>) -> Option<ExportConfig>
pub fn make_rename_config(&mut self, entity: Entity<'_>) -> &mut RenameConfig
pub fn get_rename_config(&self, entity: Entity<'_>) -> Option<&RenameConfig>
pub fn get_func_comment(&self, line: u32, cpp_refname: &str) -> Option<&str>
sourcepub fn get_class_kind(&self, entity: Entity<'tu>) -> Option<ClassKind>
pub fn get_class_kind(&self, entity: Entity<'tu>) -> Option<ClassKind>
Calculates the [ClassKind] of the class entity
based on the macros connected to its declaration and whether it can be
expressed as simple in Rust
Trait Implementations§
Auto Trait Implementations§
impl<'tu> !Freeze for GeneratorEnv<'tu>
impl<'tu> !RefUnwindSafe for GeneratorEnv<'tu>
impl<'tu> !Send for GeneratorEnv<'tu>
impl<'tu> !Sync for GeneratorEnv<'tu>
impl<'tu> Unpin for GeneratorEnv<'tu>
impl<'tu> UnwindSafe for GeneratorEnv<'tu>
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