pub struct CompleteAnswer<I: Interner> {
pub subst: Canonical<ConstrainedSubst<I>>,
pub ambiguous: bool,
}Fields§
§subst: Canonical<ConstrainedSubst<I>>Contains values for the unbound inference variables for which the table is true, along with any region constrained (which must still be proven, but not by chalk).
ambiguous: boolIf this flag is set, then the answer could be neither proven
nor disproven. This could be the size of the answer exceeded
max_size or because of a negative loop (e.g., P :- not { P }).
Trait Implementations§
Source§impl<I: Clone + Interner> Clone for CompleteAnswer<I>
impl<I: Clone + Interner> Clone for CompleteAnswer<I>
Source§fn clone(&self) -> CompleteAnswer<I>
fn clone(&self) -> CompleteAnswer<I>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<I> Freeze for CompleteAnswer<I>where
<I as Interner>::InternedCanonicalVarKinds: Freeze,
<I as Interner>::InternedSubstitution: Freeze,
<I as Interner>::InternedConstraints: Freeze,
impl<I> RefUnwindSafe for CompleteAnswer<I>where
<I as Interner>::InternedCanonicalVarKinds: RefUnwindSafe,
<I as Interner>::InternedSubstitution: RefUnwindSafe,
<I as Interner>::InternedConstraints: RefUnwindSafe,
impl<I> Send for CompleteAnswer<I>where
<I as Interner>::InternedCanonicalVarKinds: Send,
<I as Interner>::InternedSubstitution: Send,
<I as Interner>::InternedConstraints: Send,
impl<I> Sync for CompleteAnswer<I>where
<I as Interner>::InternedCanonicalVarKinds: Sync,
<I as Interner>::InternedSubstitution: Sync,
<I as Interner>::InternedConstraints: Sync,
impl<I> Unpin for CompleteAnswer<I>where
<I as Interner>::InternedCanonicalVarKinds: Unpin,
<I as Interner>::InternedSubstitution: Unpin,
<I as Interner>::InternedConstraints: Unpin,
impl<I> UnwindSafe for CompleteAnswer<I>where
<I as Interner>::InternedCanonicalVarKinds: UnwindSafe,
<I as Interner>::InternedSubstitution: UnwindSafe,
<I as Interner>::InternedConstraints: 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> Cast for T
impl<T> Cast for T
Source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U using CastTo.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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