[−][src]Enum rustc_trait_selection::infer::NLLRegionVariableOrigin
Variants
During NLL region processing, we create variables for free regions that we encounter in the function signature and elsewhere. This origin indices we've got one of those.
Placeholder(Placeholder<BoundRegion>)"Universal" instantiation of a higher-ranked region (e.g.,
from a for<'a> T binder). Meant to represent "any region".
The variable we create to represent 'empty(U0).
Fields of Existential
from_forall: boolIf this is true, then this variable was created to represent a lifetime
bound in a for binder. For example, it might have been created to
represent the lifetime 'a in a type like for<'a> fn(&'a u32).
Such variables are created when we are trying to figure out if there
is any valid instantiation of 'a that could fit into some scenario.
This is used to inform error reporting: in the case that we are trying to
determine whether there is any valid instantiation of a 'a variable that meets
some constraint C, we want to blame the "source" of that for type,
rather than blaming the source of the constraint C.
Implementations
impl NLLRegionVariableOrigin[src]
pub fn is_universal(self) -> bool[src]
pub fn is_existential(self) -> bool[src]
Trait Implementations
impl Clone for NLLRegionVariableOrigin[src]
fn clone(&self) -> NLLRegionVariableOrigin[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for NLLRegionVariableOrigin[src]
impl Debug for NLLRegionVariableOrigin[src]
Auto Trait Implementations
impl RefUnwindSafe for NLLRegionVariableOrigin
impl Send for NLLRegionVariableOrigin
impl Sync for NLLRegionVariableOrigin
impl Unpin for NLLRegionVariableOrigin
impl UnwindSafe for NLLRegionVariableOrigin
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
T: Copy, [src]
T: Copy,
fn allocate_on(self, arena: &'a Arena<'tcx>) -> &'a mut T[src]
fn allocate_from_iter(
arena: &'a Arena<'tcx>,
iter: impl IntoIterator<Item = T>
) -> &'a mut [T][src]
arena: &'a Arena<'tcx>,
iter: impl IntoIterator<Item = T>
) -> &'a mut [T]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.