[][src]Module rustc_data_structures::box_region

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

This module provides a way to deal with self-referential data.

The main idea is to allocate such data in a generator frame and then give access to it by executing user-provided closures inside that generator. The module provides a safe abstraction for the latter task.

The interface consists of two exported macros meant to be used together:

Structs

AccessActionInternal
MarkerInternal
PinnedGeneratorInternal

Enums

ActionInternal
YieldTypeInternal