pub 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§
Source§impl<I> Hash for GoalEvaluation<I>where
I: Interner,
impl<I> Hash for GoalEvaluation<I>where
I: Interner,
Source§impl<I> PartialEq for GoalEvaluation<I>where
I: Interner,
impl<I> PartialEq for GoalEvaluation<I>where
I: Interner,
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> 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
Source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.