[−][src]Struct chalk_engine::FlounderedSubgoal
A "floundered" subgoal is one that contains unbound existential variables for which it cannot produce a value. The classic example of floundering is a negative subgoal:
not { Implemented(?T: Foo) }
The way the prolog solver works, it basically enumerates all the
ways that a given goal can be true. But we can't use this
technique to find all the ways that ?T: Foo
can be false -- so
we call it floundered. In other words, we can evaluate a negative
goal, but only if we know what ?T
is -- we can't use the
negative goal to help us figuring out ?T
.
In addition to negative goals, we use floundering to prevent the
trait solver from trying to enumerate very large goals with tons
of answers. For example, we consider a goal like ?T: Sized
to
"flounder", since we can't hope to enumerate all types that are
Sized
. The same is true for other special traits like Clone
.
Floundering can also occur indirectly. For example:
trait Foo { }
impl<T> Foo for T { }
trying to solve ?T: Foo
would immediately require solving ?T: Sized
, and hence would flounder.
Fields
floundered_literal: Literal<C>
Literal that floundered.
floundered_time: TimeStamp
Current value of the strand's clock at the time of floundering.
Trait Implementations
impl<C: Clone + Context> Clone for FlounderedSubgoal<C>
[src]
fn clone(&self) -> FlounderedSubgoal<C>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C: Debug + Context> Debug for FlounderedSubgoal<C>
[src]
impl<C: Eq + Context> Eq for FlounderedSubgoal<C>
[src]
impl<C: Hash + Context> Hash for FlounderedSubgoal<C>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<C: PartialEq + Context> PartialEq<FlounderedSubgoal<C>> for FlounderedSubgoal<C>
[src]
fn eq(&self, other: &FlounderedSubgoal<C>) -> bool
[src]
fn ne(&self, other: &FlounderedSubgoal<C>) -> bool
[src]
impl<C: Context> StructuralEq for FlounderedSubgoal<C>
[src]
impl<C: Context> StructuralPartialEq for FlounderedSubgoal<C>
[src]
Auto Trait Implementations
impl<C> RefUnwindSafe for FlounderedSubgoal<C> where
<C as Context>::GoalInEnvironment: RefUnwindSafe,
<C as Context>::GoalInEnvironment: RefUnwindSafe,
impl<C> Send for FlounderedSubgoal<C> where
<C as Context>::GoalInEnvironment: Send,
<C as Context>::GoalInEnvironment: Send,
impl<C> Sync for FlounderedSubgoal<C> where
<C as Context>::GoalInEnvironment: Sync,
<C as Context>::GoalInEnvironment: Sync,
impl<C> Unpin for FlounderedSubgoal<C> where
<C as Context>::GoalInEnvironment: Unpin,
<C as Context>::GoalInEnvironment: Unpin,
impl<C> UnwindSafe for FlounderedSubgoal<C> where
<C as Context>::GoalInEnvironment: UnwindSafe,
<C as Context>::GoalInEnvironment: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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>,