Struct opencv_binding_generator::GeneratorEnv
source · pub struct GeneratorEnv<'tu> {
pub func_names: NamePool,
pub descendants: HashMap<String, HashSet<Entity<'tu>>>,
/* private fields */
}
Fields
func_names: NamePool
descendants: HashMap<String, HashSet<Entity<'tu>>>
Implementations
sourceimpl<'tu> GeneratorEnv<'tu>
impl<'tu> GeneratorEnv<'tu>
pub fn new(root_entity: Entity<'tu>, module: &'tu str) -> Self
pub fn module(&self) -> &str
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>
pub fn get_class_kind(&self, entity: Entity<'tu>) -> Option<ClassKind>
pub fn resolve_class_constant(&self, constant: &str) -> Option<&Const<'tu>>
pub fn resolve_type(&self, typ: &str) -> Option<Type<'tu>>
pub fn resolve_typeref<'ge>(&'ge self, typ: &str) -> TypeRef<'tu, 'ge>
pub fn is_used_in_smart_ptr(&self, entity: Entity<'_>) -> bool
Trait Implementations
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more