Struct rustc_monomorphize::collector::InliningMap
source · pub struct InliningMap<'tcx> {
index: FxHashMap<MonoItem<'tcx>, Range<usize>>,
targets: Vec<MonoItem<'tcx>>,
inlines: GrowableBitSet<usize>,
}Expand description
Maps every mono item to all mono items it references in its body.
Fields§
§index: FxHashMap<MonoItem<'tcx>, Range<usize>>§targets: Vec<MonoItem<'tcx>>§inlines: GrowableBitSet<usize>Implementations§
source§impl<'tcx> InliningMap<'tcx>
impl<'tcx> InliningMap<'tcx>
fn new() -> InliningMap<'tcx>
fn record_accesses<'a>(
&mut self,
source: MonoItem<'tcx>,
new_targets: &'a [(Spanned<MonoItem<'tcx>>, bool)]
)where
'tcx: 'a,
pub fn with_inlining_candidates<F>(&self, source: MonoItem<'tcx>, f: F)where
F: FnMut(MonoItem<'tcx>),
pub fn iter_accesses<F>(&self, f: F)where
F: FnMut(MonoItem<'tcx>, &[MonoItem<'tcx>]),
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for InliningMap<'tcx>
impl<'tcx> !Send for InliningMap<'tcx>
impl<'tcx> !Sync for InliningMap<'tcx>
impl<'tcx> Unpin for InliningMap<'tcx>
impl<'tcx> !UnwindSafe for InliningMap<'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: 88 bytes