Trait rustc_mir::monomorphize::partitioning::CodegenUnitExt
[−]
[src]
pub trait CodegenUnitExt<'tcx> { fn as_codegen_unit(&self) -> &CodegenUnit<'tcx>; fn contains_item(&self, item: &MonoItem<'tcx>) -> bool { ... } fn name<'a>(&'a self) -> &'a InternedString
where
'tcx: 'a, { ... } fn items(&self) -> &FxHashMap<MonoItem<'tcx>, (Linkage, Visibility)> { ... } fn work_product_id(&self) -> WorkProductId { ... } fn items_in_deterministic_order<'a>(
&self,
tcx: TyCtxt<'a, 'tcx, 'tcx>
) -> Vec<(MonoItem<'tcx>, (Linkage, Visibility))> { ... } }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Required Methods
fn as_codegen_unit(&self) -> &CodegenUnit<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Provided Methods
fn contains_item(&self, item: &MonoItem<'tcx>) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn name<'a>(&'a self) -> &'a InternedString where
'tcx: 'a,
'tcx: 'a,
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn items(&self) -> &FxHashMap<MonoItem<'tcx>, (Linkage, Visibility)>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn work_product_id(&self) -> WorkProductId
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn items_in_deterministic_order<'a>(
&self,
tcx: TyCtxt<'a, 'tcx, 'tcx>
) -> Vec<(MonoItem<'tcx>, (Linkage, Visibility))>
&self,
tcx: TyCtxt<'a, 'tcx, 'tcx>
) -> Vec<(MonoItem<'tcx>, (Linkage, Visibility))>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Implementors
impl<'tcx> CodegenUnitExt<'tcx> for CodegenUnit<'tcx>