Enum rustc_borrowck::region_infer::values::RegionElement
source · 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.
RootUniversalRegion(RegionVid)
A universally quantified region from the root universe (e.g., a lifetime parameter).
PlaceholderRegion(PlaceholderRegion)
A placeholder (e.g., instantiated from a for<'a> fn(&'a u32)
type).
Trait Implementations§
source§impl Clone for RegionElement
impl Clone for RegionElement
source§fn clone(&self) -> RegionElement
fn clone(&self) -> RegionElement
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for RegionElement
impl !Send for RegionElement
impl !Sync for RegionElement
impl Unpin for RegionElement
impl UnwindSafe for RegionElement
Blanket Implementations§
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
: 24 bytesRootUniversalRegion
: 4 bytesPlaceholderRegion
: 24 bytes