Module rustc::middle::region [] [src]

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

This file builds up the ScopeTree, which describes the parent links in the region hierarchy.

Most of the documentation on regions can be found in middle/infer/region_constraints/README.md

Structs

BlockRemainder [
Experimental
]

Represents a subscope of block for a binding that is introduced by block.stmts[first_statement_index]. Such subscopes represent a suffix of the block. Note that each subscope does not include the initializer expression, if any, for the statement indexed by first_statement_index.

Context [
Experimental
]
FirstStatementIndex [
Experimental
]
Scope [
Experimental
]

Scope represents a statically-describable scope that can be used to bound the lifetime/region for values.

ScopeTree [
Experimental
]

The region scope tree encodes information about region relationships.

Enums

ScopeData [
Experimental
]

Functions

provide [
Experimental
]