Struct rustc::ty::InterpretInterner
[−]
[src]
pub struct InterpretInterner<'tcx> { /* fields omitted */ }
🔬 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?
Everything needed to efficiently work with interned allocations
Methods
impl<'tcx> InterpretInterner<'tcx>
[src]
impl<'tcx> InterpretInterner<'tcx>
pub fn create_fn_alloc(&self, instance: Instance<'tcx>) -> AllocId
[src]
pub fn create_fn_alloc(&self, instance: Instance<'tcx>) -> AllocId
🔬 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?
pub fn get_fn(&self, id: AllocId) -> Option<Instance<'tcx>>
[src]
pub fn get_fn(&self, id: AllocId) -> Option<Instance<'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?
pub fn get_alloc(&self, id: AllocId) -> Option<&'tcx Allocation>
[src]
pub fn get_alloc(&self, id: AllocId) -> Option<&'tcx Allocation>
🔬 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?
pub fn cache_static(&self, static_id: DefId) -> AllocId
[src]
pub fn cache_static(&self, static_id: DefId) -> AllocId
🔬 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?
pub fn get_static(&self, ptr: AllocId) -> Option<DefId>
[src]
pub fn get_static(&self, ptr: AllocId) -> Option<DefId>
🔬 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?
pub fn intern_at_reserved(&self, id: AllocId, alloc: &'tcx Allocation)
[src]
pub fn intern_at_reserved(&self, id: AllocId, alloc: &'tcx Allocation)
🔬 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?
pub fn reserve(&self) -> AllocId
[src]
pub fn reserve(&self) -> AllocId
🔬 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?
obtains a new allocation ID that can be referenced but does not yet have an allocation backing it.
Trait Implementations
impl<'tcx> Debug for InterpretInterner<'tcx>
[src]
impl<'tcx> Debug for InterpretInterner<'tcx>
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'tcx> Default for InterpretInterner<'tcx>
[src]
impl<'tcx> Default for InterpretInterner<'tcx>
fn default() -> InterpretInterner<'tcx>
[src]
fn default() -> InterpretInterner<'tcx>
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl<'tcx> !Send for InterpretInterner<'tcx>
impl<'tcx> !Send for InterpretInterner<'tcx>
impl<'tcx> !Sync for InterpretInterner<'tcx>
impl<'tcx> !Sync for InterpretInterner<'tcx>