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

🔬 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.

🔬 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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'tcx> Debug for GlobalId<'tcx>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'tcx> Eq for GlobalId<'tcx>
[src]

impl<'tcx> PartialEq for GlobalId<'tcx>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'tcx> Hash for GlobalId<'tcx>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more