Enum rustc::middle::ty::Region[src]
pub enum Region {
ReEarlyBound(NodeId, ParamSpace, uint, Name),
ReLateBound(NodeId, BoundRegion),
ReFree(FreeRegion),
ReScope(NodeId),
ReStatic,
ReInfer(InferRegion),
ReEmpty,
}Representation of regions:
Variants
ReEarlyBound | |
ReLateBound | |
ReFree | When checking a function body, the types of all arguments and so forth that refer to bound region parameters are modified to refer to free region parameters. |
ReScope | A concrete region naming some expression within the current function. |
ReStatic | Static data that has an "infinite" lifetime. Top in the region lattice. |
ReInfer | A region variable. Should not exist after typeck. |
ReEmpty | Empty lifetime is for data that is never accessed. Bottom in the region lattice. We treat ReEmpty somewhat specially; at least right now, we do not generate instances of it during the GLB computations, but rather generate an error instead. This is to improve error messages. The only way to get an instance of ReEmpty is to have a region variable with no constraints. |