Struct GoalEvaluation
pub(crate) struct GoalEvaluation<I>where
I: Interner,{
pub uncanonicalized_goal: Goal<I, <I as Interner>::Predicate>,
pub orig_values: Vec<<I as Interner>::GenericArg>,
pub final_revision: <I as Interner>::Probe,
pub result: Result<Canonical<I, Response<I>>, NoSolution>,
}Expand description
When evaluating a goal we also store the original values
for the CanonicalVarValues of the canonicalized goal.
We use this to map any CanonicalState from the local InferCtxt
of the solver query to the InferCtxt of the caller.
Fields§
§uncanonicalized_goal: Goal<I, <I as Interner>::Predicate>§orig_values: Vec<<I as Interner>::GenericArg>§final_revision: <I as Interner>::Probe§result: Result<Canonical<I, Response<I>>, NoSolution>Trait Implementations§
§impl<I> Hash for GoalEvaluation<I>where
I: Interner,
impl<I> Hash for GoalEvaluation<I>where
I: Interner,
§impl<I> PartialEq for GoalEvaluation<I>where
I: Interner,
impl<I> PartialEq for GoalEvaluation<I>where
I: Interner,
§fn eq(&self, __other: &GoalEvaluation<I>) -> bool
fn eq(&self, __other: &GoalEvaluation<I>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<I> Eq for GoalEvaluation<I>where
I: Interner,
Auto Trait Implementations§
impl<I> Freeze for GoalEvaluation<I>
impl<I> RefUnwindSafe for GoalEvaluation<I>where
<I as Interner>::Probe: RefUnwindSafe,
<I as Interner>::ParamEnv: RefUnwindSafe,
<I as Interner>::Predicate: RefUnwindSafe,
<I as Interner>::CanonicalVarKinds: RefUnwindSafe,
<I as Interner>::GenericArg: RefUnwindSafe,
<I as Interner>::ExternalConstraints: RefUnwindSafe,
<I as Interner>::GenericArgs: RefUnwindSafe,
impl<I> Send for GoalEvaluation<I>
impl<I> Sync for GoalEvaluation<I>
impl<I> Unpin for GoalEvaluation<I>
impl<I> UnsafeUnpin for GoalEvaluation<I>where
<I as Interner>::Probe: UnsafeUnpin,
<I as Interner>::ParamEnv: UnsafeUnpin,
<I as Interner>::Predicate: UnsafeUnpin,
<I as Interner>::CanonicalVarKinds: UnsafeUnpin,
<I as Interner>::ExternalConstraints: UnsafeUnpin,
<I as Interner>::GenericArgs: UnsafeUnpin,
impl<I> UnwindSafe for GoalEvaluation<I>where
<I as Interner>::Probe: UnwindSafe,
<I as Interner>::ParamEnv: UnwindSafe,
<I as Interner>::Predicate: UnwindSafe,
<I as Interner>::CanonicalVarKinds: UnwindSafe,
<I as Interner>::GenericArg: UnwindSafe,
<I as Interner>::ExternalConstraints: UnwindSafe,
<I as Interner>::GenericArgs: UnwindSafe,
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
§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> HashEqLike<T> for T
impl<T> HashEqLike<T> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more