Enum rustc_borrowck::region_infer::values::RegionElement [−][src]
pub(crate) enum RegionElement {
Location(Location),
RootUniversalRegion(RegionVid),
PlaceholderRegion(PlaceholderRegion),
}
Expand description
An individual element in a region value – the value of a particular region variable consists of a set of these elements.
Variants
Location(Location)
A point in the control-flow graph.
Tuple Fields of Location
0: Location
RootUniversalRegion(RegionVid)
A universally quantified region from the root universe (e.g., a lifetime parameter).
Tuple Fields of RootUniversalRegion
0: RegionVid
PlaceholderRegion(PlaceholderRegion)
A placeholder (e.g., instantiated from a for<'a> fn(&'a u32)
type).
Tuple Fields of PlaceholderRegion
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RegionElement
impl Send for RegionElement
impl Sync for RegionElement
impl Unpin for RegionElement
impl UnwindSafe for RegionElement
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes
Size for each variant:
Location
: 20 bytesRootUniversalRegion
: 4 bytesPlaceholderRegion
: 20 bytes