pub struct RuleApplication { /* private fields */ }Expand description
Result of evaluating one rule and committing its conclusion in a reasoning batch.
Implementations§
Source§impl RuleApplication
impl RuleApplication
Sourcepub fn evaluation(&self) -> &RuleEvaluation
pub fn evaluation(&self) -> &RuleEvaluation
Returns the pure evaluation that preceded the committed batch.
This is the snapshot candidate, not a fresh read of committed state. Terminal-state preservation can therefore make the stored lifecycle state differ from this hypothesis; query the knowledge base when the post-commit record is required.
Sourcepub fn write(&self) -> Option<KnowledgeWrite>
pub fn write(&self) -> Option<KnowledgeWrite>
Returns the knowledge write, or None for an unmatched rule.
Trait Implementations§
Source§impl Clone for RuleApplication
impl Clone for RuleApplication
Source§fn clone(&self) -> RuleApplication
fn clone(&self) -> RuleApplication
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RuleApplication
impl Debug for RuleApplication
impl Eq for RuleApplication
Source§impl PartialEq for RuleApplication
impl PartialEq for RuleApplication
Source§impl Serialize for RuleApplication
impl Serialize for RuleApplication
impl StructuralPartialEq for RuleApplication
Auto Trait Implementations§
impl Freeze for RuleApplication
impl RefUnwindSafe for RuleApplication
impl Send for RuleApplication
impl Sync for RuleApplication
impl Unpin for RuleApplication
impl UnsafeUnpin for RuleApplication
impl UnwindSafe for RuleApplication
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§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.§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