pub struct ExplanationBuilder { /* private fields */ }Expand description
Explanation builder that tracks the proof process
Implementations§
Source§impl ExplanationBuilder
impl ExplanationBuilder
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if tracking is enabled
Sourcepub fn start_goal(&mut self, goal: &Goal)
pub fn start_goal(&mut self, goal: &Goal)
Start tracking a goal
Sourcepub fn goal_proven_by_fact(&mut self, goal: &Goal, bindings: &Bindings)
pub fn goal_proven_by_fact(&mut self, goal: &Goal, bindings: &Bindings)
Mark goal as proven by a fact
Sourcepub fn goal_proven_by_rule(
&mut self,
goal: &Goal,
rule_name: &str,
bindings: &Bindings,
)
pub fn goal_proven_by_rule( &mut self, goal: &Goal, rule_name: &str, bindings: &Bindings, )
Mark goal as proven by a rule
Sourcepub fn goal_negation(&mut self, goal: &Goal, proven: bool)
pub fn goal_negation(&mut self, goal: &Goal, proven: bool)
Mark goal as negation
Sourcepub fn goal_failed(&mut self)
pub fn goal_failed(&mut self)
Mark goal as failed
Sourcepub fn finish_goal(&mut self)
pub fn finish_goal(&mut self)
Finish tracking a goal and add to parent
Sourcepub fn stats(&self) -> ProofStats
pub fn stats(&self) -> ProofStats
Get current statistics
Trait Implementations§
Source§impl Clone for ExplanationBuilder
impl Clone for ExplanationBuilder
Source§fn clone(&self) -> ExplanationBuilder
fn clone(&self) -> ExplanationBuilder
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 moreSource§impl Debug for ExplanationBuilder
impl Debug for ExplanationBuilder
Auto Trait Implementations§
impl Freeze for ExplanationBuilder
impl RefUnwindSafe for ExplanationBuilder
impl Send for ExplanationBuilder
impl Sync for ExplanationBuilder
impl Unpin for ExplanationBuilder
impl UnwindSafe for ExplanationBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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