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
sourceimpl<'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
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
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