Struct rustc_mir::monomorphize::collector::InliningMap [−][src]
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
impl<'tcx> InliningMap<'tcx>[src]
impl<'tcx> InliningMap<'tcx>[src]fn new() -> InliningMap<'tcx>[src]
fn record_accesses(
&mut self,
source: MonoItem<'tcx>,
new_targets: &[(MonoItem<'tcx>, bool)]
)[src]
&mut self,
source: MonoItem<'tcx>,
new_targets: &[(MonoItem<'tcx>, bool)]
)
pub fn with_inlining_candidates<F>(&self, source: MonoItem<'tcx>, f: F) where
F: FnMut(MonoItem<'tcx>), [src]
F: FnMut(MonoItem<'tcx>),
pub fn iter_accesses<F>(&self, f: F) where
F: FnMut(MonoItem<'tcx>, &[MonoItem<'tcx>]), [src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]