pub struct KnowledgeSnapshot { /* private fields */ }Expand description
Consistent, immutable knowledge for one subject at one point in time.
Rule evaluation uses this snapshot so every expression in one decision cycle observes the same ontology, evidence, facts, and hypotheses.
Implementations§
Source§impl KnowledgeSnapshot
impl KnowledgeSnapshot
Sourcepub fn subject_revision(&self) -> u64
pub fn subject_revision(&self) -> u64
Returns the subject-local knowledge revision captured by this snapshot.
Sourcepub fn ontology_revision(&self) -> u64
pub fn ontology_revision(&self) -> u64
Returns the global ontology revision captured by this snapshot.
Sourcepub fn hypotheses(&self) -> &[Hypothesis]
pub fn hypotheses(&self) -> &[Hypothesis]
Returns hypotheses ordered by stable hypothesis ID.
Trait Implementations§
Source§impl Clone for KnowledgeSnapshot
impl Clone for KnowledgeSnapshot
Source§fn clone(&self) -> KnowledgeSnapshot
fn clone(&self) -> KnowledgeSnapshot
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 moreAuto Trait Implementations§
impl Freeze for KnowledgeSnapshot
impl RefUnwindSafe for KnowledgeSnapshot
impl Send for KnowledgeSnapshot
impl Sync for KnowledgeSnapshot
impl Unpin for KnowledgeSnapshot
impl UnsafeUnpin for KnowledgeSnapshot
impl UnwindSafe for KnowledgeSnapshot
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