pub struct ExplanationStep {
pub step_number: usize,
pub goal: String,
pub rule_name: Option<String>,
pub condition: String,
pub bindings: HashMap<String, String>,
pub result: StepResult,
pub depth: usize,
}Expand description
Step-by-step explanation of reasoning
Fields§
§step_number: usizeStep number
goal: StringGoal being proven
rule_name: Option<String>Rule used (if any)
condition: StringCondition evaluated
bindings: HashMap<String, String>Variable bindings at this step
result: StepResultResult of this step
depth: usizeDepth in reasoning tree
Implementations§
Trait Implementations§
Source§impl Clone for ExplanationStep
impl Clone for ExplanationStep
Source§fn clone(&self) -> ExplanationStep
fn clone(&self) -> ExplanationStep
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 Freeze for ExplanationStep
impl RefUnwindSafe for ExplanationStep
impl Send for ExplanationStep
impl Sync for ExplanationStep
impl Unpin for ExplanationStep
impl UnwindSafe for ExplanationStep
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