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
sourceimpl Clone for RegionElement
impl Clone for RegionElement
sourcefn clone(&self) -> RegionElement
fn clone(&self) -> RegionElement
Returns a copy of the value. Read more
1.0.0 · sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
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
: 16 bytes