Struct rustc::mir::interpret::GlobalId
[−]
[src]
pub struct GlobalId<'tcx> { pub instance: Instance<'tcx>, pub promoted: Option<Promoted>, }
🔬 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?
Uniquely identifies a specific constant or static.
Fields
instance: 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?
For a constant or static, the Instance
of the item itself.
For a promoted global, the Instance
of the function they belong to.
promoted: Option<Promoted>
🔬 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?
The index for promoted globals within their function's Mir
.
Trait Implementations
impl<'tcx> Copy for GlobalId<'tcx>
[src]
impl<'tcx> Clone for GlobalId<'tcx>
[src]
fn clone(&self) -> GlobalId<'tcx>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'tcx> Debug for GlobalId<'tcx>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'tcx> Eq for GlobalId<'tcx>
[src]
impl<'tcx> PartialEq for GlobalId<'tcx>
[src]
fn eq(&self, __arg_0: &GlobalId<'tcx>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &GlobalId<'tcx>) -> bool
[src]
This method tests for !=
.