Enum chalk_recursive::fulfill::Obligation
source · enum Obligation<I: Interner> {
Prove(InEnvironment<Goal<I>>),
Refute(InEnvironment<Goal<I>>),
}
Expand description
A goal that must be resolved
Variants§
Prove(InEnvironment<Goal<I>>)
For “positive” goals, we flatten all the way out to leafs within the
current Fulfill
Refute(InEnvironment<Goal<I>>)
For “negative” goals, we don’t flatten in this Fulfill
, which would
require having a logical “or” operator. Instead, we recursively solve in
a fresh Fulfill
.
Trait Implementations§
source§impl<I: Clone + Interner> Clone for Obligation<I>
impl<I: Clone + Interner> Clone for Obligation<I>
source§fn clone(&self) -> Obligation<I>
fn clone(&self) -> Obligation<I>
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<I: Debug + Interner> Debug for Obligation<I>
impl<I: Debug + Interner> Debug for Obligation<I>
source§impl<I: PartialEq + Interner> PartialEq for Obligation<I>
impl<I: PartialEq + Interner> PartialEq for Obligation<I>
source§fn eq(&self, other: &Obligation<I>) -> bool
fn eq(&self, other: &Obligation<I>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<I: Eq + Interner> Eq for Obligation<I>
impl<I: Interner> StructuralPartialEq for Obligation<I>
Auto Trait Implementations§
impl<I> Freeze for Obligation<I>
impl<I> RefUnwindSafe for Obligation<I>where
<I as Interner>::InternedGoal: RefUnwindSafe,
<I as Interner>::InternedProgramClauses: RefUnwindSafe,
impl<I> Send for Obligation<I>
impl<I> Sync for Obligation<I>
impl<I> Unpin for Obligation<I>
impl<I> UnwindSafe for Obligation<I>where
<I as Interner>::InternedGoal: UnwindSafe,
<I as Interner>::InternedProgramClauses: 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> Cast for T
impl<T> Cast for T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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
Compare self to
key
and return true
if they are equal.