Enum rustc_borrowck::renumber::RegionCtxt
source · pub(crate) enum RegionCtxt {
Location(Location),
TyContext(TyContext),
Free(Symbol),
Bound(Symbol),
LateBound(Symbol),
Existential(Option<Symbol>),
Placeholder(Symbol),
Unknown,
}
Variants§
Location(Location)
TyContext(TyContext)
Free(Symbol)
Bound(Symbol)
LateBound(Symbol)
Existential(Option<Symbol>)
Placeholder(Symbol)
Unknown
Implementations§
source§impl RegionCtxt
impl RegionCtxt
sourcepub(crate) fn preference_value(self) -> usize
pub(crate) fn preference_value(self) -> usize
Used to determine the representative of a component in the strongly connected constraint graph
Trait Implementations§
source§impl Clone for RegionCtxt
impl Clone for RegionCtxt
source§fn clone(&self) -> RegionCtxt
fn clone(&self) -> RegionCtxt
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 moresource§impl Debug for RegionCtxt
impl Debug for RegionCtxt
source§impl Hash for RegionCtxt
impl Hash for RegionCtxt
source§impl PartialEq<RegionCtxt> for RegionCtxt
impl PartialEq<RegionCtxt> for RegionCtxt
source§fn eq(&self, other: &RegionCtxt) -> bool
fn eq(&self, other: &RegionCtxt) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RegionCtxt
impl Eq for RegionCtxt
impl StructuralEq for RegionCtxt
impl StructuralPartialEq for RegionCtxt
Auto Trait Implementations§
impl RefUnwindSafe for RegionCtxt
impl !Send for RegionCtxt
impl !Sync for RegionCtxt
impl Unpin for RegionCtxt
impl UnwindSafe for RegionCtxt
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
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
: 24 bytesTyContext
: 24 bytesFree
: 8 bytesBound
: 8 bytesLateBound
: 8 bytesExistential
: 8 bytesPlaceholder
: 8 bytesUnknown
: 0 bytes