Lines Matching defs:BindgenContext
308 pub struct BindgenContext { struct
310 items: Vec<Option<Item>>,
314 types: HashMap<TypeKey, TypeId>,
318 type_params: HashMap<clang::Cursor, TypeId>,
321 modules: HashMap<Cursor, ModuleId>,
324 root_module: ModuleId,
327 current_module: ModuleId,
335 semantic_parents: HashMap<clang::Cursor, ItemId>,
348 currently_parsed_types: Vec<PartialType>,
355 parsed_macros: StdHashMap<Vec<u8>, cexpr::expr::EvalResult>,
358 replacements: HashMap<Vec<String>, ItemId>,
360 collected_typerefs: bool,
362 in_codegen: bool,
365 index: clang::Index,
368 translation_unit: clang::TranslationUnit,
371 target_info: Option<clang::TargetInfo>,
374 options: BindgenOptions,
377 generated_bindgen_complex: Cell<bool>,
381 allowlisted: Option<ItemSet>,
384 blocklisted_types_implement_traits:
391 codegen_items: Option<ItemSet>,
396 used_template_parameters: Option<HashMap<ItemId, ItemSet>>,
400 need_bitfield_allocation: Vec<ItemId>,
406 cannot_derive_debug: Option<HashSet<ItemId>>,
412 cannot_derive_default: Option<HashSet<ItemId>>,
418 cannot_derive_copy: Option<HashSet<ItemId>>,
424 cannot_derive_copy_in_array: Option<HashSet<ItemId>>,
430 cannot_derive_hash: Option<HashSet<ItemId>>,
437 cannot_derive_partialeq_or_partialord: Option<HashMap<ItemId, CanDerive>>,
443 sizedness: Option<HashMap<TypeId, SizednessResult>>,
472 ctx: &'ctx BindgenContext, argument
500 ctx: &'ctx BindgenContext, in new()
502 predicate: for<'a> fn(&'a BindgenContext, Edge) -> bool, in new()
514 impl BindgenContext { implementation
937 F: (FnOnce(&BindgenContext, &mut Item) -> T), in with_loaned_item()