Struct rustc_ast_lowering::item::ItemLowerer
source · pub(crate) struct ItemLowerer<'a, 'hir> {
pub(crate) tcx: TyCtxt<'hir>,
pub(crate) resolver: &'a mut ResolverAstLowering,
pub(crate) ast_arena: &'a Arena<'static>,
pub(crate) ast_index: &'a IndexVec<LocalDefId, AstOwner<'a>>,
pub(crate) owners: &'a mut IndexVec<LocalDefId, MaybeOwner<&'hir OwnerInfo<'hir>>>,
}
Fields§
§tcx: TyCtxt<'hir>
§resolver: &'a mut ResolverAstLowering
§ast_arena: &'a Arena<'static>
§ast_index: &'a IndexVec<LocalDefId, AstOwner<'a>>
§owners: &'a mut IndexVec<LocalDefId, MaybeOwner<&'hir OwnerInfo<'hir>>>
Implementations§
source§impl<'a, 'hir> ItemLowerer<'a, 'hir>
impl<'a, 'hir> ItemLowerer<'a, 'hir>
fn with_lctx(
&mut self,
owner: NodeId,
f: impl FnOnce(&mut LoweringContext<'_, 'hir>) -> OwnerNode<'hir>
)
pub(crate) fn lower_node(
&mut self,
def_id: LocalDefId
) -> MaybeOwner<&'hir OwnerInfo<'hir>>
fn lower_crate(&mut self, c: &Crate)
fn lower_item(&mut self, item: &Item)
fn lower_assoc_item(&mut self, item: &AssocItem, ctxt: AssocCtxt)
fn lower_foreign_item(&mut self, item: &ForeignItem)
Auto Trait Implementations§
impl<'a, 'hir> !RefUnwindSafe for ItemLowerer<'a, 'hir>
impl<'a, 'hir> !Send for ItemLowerer<'a, 'hir>
impl<'a, 'hir> !Sync for ItemLowerer<'a, 'hir>
impl<'a, 'hir> Unpin for ItemLowerer<'a, 'hir>where
'hir: 'a,
impl<'a, 'hir> !UnwindSafe for ItemLowerer<'a, 'hir>
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes