Struct rustc::middle::region::Context[][src]

pub struct Context {
    root_id: Option<ItemLocalId>,
    var_parent: Option<Scope>,
    parent: Option<Scope>,
}
🔬 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?

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?

the root of the current region tree. This is typically the id of the innermost fn body. Each fn forms its own disjoint tree in the region hierarchy. These fn bodies are themselves arranged into a tree. See the "Modeling closures" section of the README in infer::region_constraints for more details.

🔬 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 scope that contains any new variables declared

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

region parent of expressions etc

Trait Implementations

impl Debug for Context
[src]

Formats the value using the given formatter. Read more

impl Copy for Context
[src]

impl Clone for Context
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Context

impl Sync for Context