[−][src]Struct chalk_engine::slg::TruncatingInferenceTable
Trait Implementations
impl<I: Clone + Interner> Clone for TruncatingInferenceTable<I>
[src]
fn clone(&self) -> TruncatingInferenceTable<I>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<I: Interner> ResolventOps<I> for TruncatingInferenceTable<I>
[src]
fn resolvent_clause(
&mut self,
interner: &I,
environment: &Environment<I>,
goal: &DomainGoal<I>,
subst: &Substitution<I>,
clause: &ProgramClause<I>
) -> Fallible<ExClause<I>>
[src]
&mut self,
interner: &I,
environment: &Environment<I>,
goal: &DomainGoal<I>,
subst: &Substitution<I>,
clause: &ProgramClause<I>
) -> Fallible<ExClause<I>>
Applies the SLG resolvent algorithm to incorporate a program clause into the main X-clause, producing a new X-clause that must be solved.
Parameters
goal
is the goal G that we are trying to solveclause
is the program clause that may be useful to that end
fn apply_answer_subst(
&mut self,
interner: &I,
ex_clause: &mut ExClause<I>,
selected_goal: &InEnvironment<Goal<I>>,
answer_table_goal: &Canonical<InEnvironment<Goal<I>>>,
canonical_answer_subst: &Canonical<AnswerSubst<I>>
) -> Fallible<()>
[src]
&mut self,
interner: &I,
ex_clause: &mut ExClause<I>,
selected_goal: &InEnvironment<Goal<I>>,
answer_table_goal: &Canonical<InEnvironment<Goal<I>>>,
canonical_answer_subst: &Canonical<AnswerSubst<I>>
) -> Fallible<()>
impl<I: Interner> TruncateOps<I> for TruncatingInferenceTable<I>
[src]
fn goal_needs_truncation(
&mut self,
interner: &I,
subgoal: &InEnvironment<Goal<I>>
) -> bool
[src]
&mut self,
interner: &I,
subgoal: &InEnvironment<Goal<I>>
) -> bool
fn answer_needs_truncation(
&mut self,
interner: &I,
subst: &Substitution<I>
) -> bool
[src]
&mut self,
interner: &I,
subst: &Substitution<I>
) -> bool
impl<I: Interner> UnificationOps<I> for TruncatingInferenceTable<I>
[src]
fn instantiate_binders_universally(
&mut self,
interner: &I,
arg: &Binders<Goal<I>>
) -> Goal<I>
[src]
&mut self,
interner: &I,
arg: &Binders<Goal<I>>
) -> Goal<I>
fn instantiate_binders_existentially(
&mut self,
interner: &I,
arg: &Binders<Goal<I>>
) -> Goal<I>
[src]
&mut self,
interner: &I,
arg: &Binders<Goal<I>>
) -> Goal<I>
fn debug_ex_clause<'v>(
&mut self,
interner: &I,
value: &'v ExClause<I>
) -> Box<dyn Debug + 'v>
[src]
&mut self,
interner: &I,
value: &'v ExClause<I>
) -> Box<dyn Debug + 'v>
fn fully_canonicalize_goal(
&mut self,
interner: &I,
value: &InEnvironment<Goal<I>>
) -> (UCanonical<InEnvironment<Goal<I>>>, UniverseMap)
[src]
&mut self,
interner: &I,
value: &InEnvironment<Goal<I>>
) -> (UCanonical<InEnvironment<Goal<I>>>, UniverseMap)
fn canonicalize_ex_clause(
&mut self,
interner: &I,
value: &ExClause<I>
) -> Canonical<ExClause<I>>
[src]
&mut self,
interner: &I,
value: &ExClause<I>
) -> Canonical<ExClause<I>>
fn canonicalize_constrained_subst(
&mut self,
interner: &I,
subst: Substitution<I>,
constraints: Vec<InEnvironment<Constraint<I>>>
) -> Canonical<ConstrainedSubst<I>>
[src]
&mut self,
interner: &I,
subst: Substitution<I>,
constraints: Vec<InEnvironment<Constraint<I>>>
) -> Canonical<ConstrainedSubst<I>>
fn canonicalize_answer_subst(
&mut self,
interner: &I,
subst: Substitution<I>,
constraints: Vec<InEnvironment<Constraint<I>>>,
delayed_subgoals: Vec<InEnvironment<Goal<I>>>
) -> Canonical<AnswerSubst<I>>
[src]
&mut self,
interner: &I,
subst: Substitution<I>,
constraints: Vec<InEnvironment<Constraint<I>>>,
delayed_subgoals: Vec<InEnvironment<Goal<I>>>
) -> Canonical<AnswerSubst<I>>
fn invert_goal(
&mut self,
interner: &I,
value: &InEnvironment<Goal<I>>
) -> Option<InEnvironment<Goal<I>>>
[src]
&mut self,
interner: &I,
value: &InEnvironment<Goal<I>>
) -> Option<InEnvironment<Goal<I>>>
fn unify_generic_args_into_ex_clause(
&mut self,
interner: &I,
environment: &Environment<I>,
a: &GenericArg<I>,
b: &GenericArg<I>,
ex_clause: &mut ExClause<I>
) -> Fallible<()>
[src]
&mut self,
interner: &I,
environment: &Environment<I>,
a: &GenericArg<I>,
b: &GenericArg<I>,
ex_clause: &mut ExClause<I>
) -> Fallible<()>
Auto Trait Implementations
impl<I> RefUnwindSafe for TruncatingInferenceTable<I> where
I: RefUnwindSafe,
<I as Interner>::InternedGenericArg: RefUnwindSafe,
I: RefUnwindSafe,
<I as Interner>::InternedGenericArg: RefUnwindSafe,
impl<I> Send for TruncatingInferenceTable<I> where
I: Send,
<I as Interner>::InternedGenericArg: Send,
I: Send,
<I as Interner>::InternedGenericArg: Send,
impl<I> Sync for TruncatingInferenceTable<I> where
I: Sync,
<I as Interner>::InternedGenericArg: Sync,
I: Sync,
<I as Interner>::InternedGenericArg: Sync,
impl<I> Unpin for TruncatingInferenceTable<I> where
I: Unpin,
<I as Interner>::InternedGenericArg: Unpin,
I: Unpin,
<I as Interner>::InternedGenericArg: Unpin,
impl<I> UnwindSafe for TruncatingInferenceTable<I> where
I: UnwindSafe,
<I as Interner>::InternedGenericArg: UnwindSafe,
I: UnwindSafe,
<I as Interner>::InternedGenericArg: 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> Cast for T
[src]
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
[src]
Self: CastTo<U>,
U: HasInterner,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[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>,