pub struct ProofGraph {
pub stats: ProofGraphStats,
/* private fields */
}Expand description
Global proof graph cache
Fields§
§stats: ProofGraphStatsStatistics
Implementations§
Source§impl ProofGraph
impl ProofGraph
Sourcepub fn insert_proof(
&mut self,
handle: FactHandle,
key: FactKey,
rule_name: String,
premises: Vec<FactHandle>,
premise_keys: Vec<String>,
)
pub fn insert_proof( &mut self, handle: FactHandle, key: FactKey, rule_name: String, premises: Vec<FactHandle>, premise_keys: Vec<String>, )
Insert a proof into the graph
Sourcepub fn lookup_by_key(&mut self, key: &FactKey) -> Option<Vec<&ProofGraphNode>>
pub fn lookup_by_key(&mut self, key: &FactKey) -> Option<Vec<&ProofGraphNode>>
Lookup proven facts by key pattern
Sourcepub fn invalidate_handle(&mut self, handle: &FactHandle)
pub fn invalidate_handle(&mut self, handle: &FactHandle)
Invalidate a fact handle (e.g., when retracted by TMS)
Sourcepub fn get_node(&self, handle: &FactHandle) -> Option<&ProofGraphNode>
pub fn get_node(&self, handle: &FactHandle) -> Option<&ProofGraphNode>
Get a node by handle
Sourcepub fn generation(&self) -> u64
pub fn generation(&self) -> u64
Get current generation counter
Sourcepub fn print_stats(&self)
pub fn print_stats(&self)
Print statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProofGraph
impl RefUnwindSafe for ProofGraph
impl Send for ProofGraph
impl Sync for ProofGraph
impl Unpin for ProofGraph
impl UnwindSafe for ProofGraph
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