Struct rustc_monomorphize::collector::MonoItems
source · struct MonoItems<'tcx> {
compute_inlining: bool,
tcx: TyCtxt<'tcx>,
items: Vec<(Spanned<MonoItem<'tcx>>, bool)>,
}
Expand description
Struct to store mono items in each collecting and if they should
be inlined. We call instantiation_mode
to get their inlining
status when inserting new elements, which avoids calling it in
inlining_map.lock_mut()
. See the collect_items_rec
implementation
below.
Fields§
§compute_inlining: bool
§tcx: TyCtxt<'tcx>
§items: Vec<(Spanned<MonoItem<'tcx>>, bool)>
Implementations§
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for MonoItems<'tcx>
impl<'tcx> !Send for MonoItems<'tcx>
impl<'tcx> !Sync for MonoItems<'tcx>
impl<'tcx> Unpin for MonoItems<'tcx>
impl<'tcx> !UnwindSafe for MonoItems<'tcx>
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