pub struct GoalManager { /* private fields */ }Expand description
Manager for goal-driven reasoning
Implementations§
Source§impl GoalManager
impl GoalManager
Sourcepub fn next_pending(&mut self) -> Option<&mut Goal>
pub fn next_pending(&mut self) -> Option<&mut Goal>
Get the next pending goal to work on
Sourcepub fn is_cached(&self, pattern: &str) -> Option<bool>
pub fn is_cached(&self, pattern: &str) -> Option<bool>
Check if a goal pattern has been proven before (memoization)
Sourcepub fn cache_result(&mut self, pattern: String, proven: bool)
pub fn cache_result(&mut self, pattern: String, proven: bool)
Cache the result of proving a goal
Sourcepub fn is_too_deep(&self, depth: usize) -> bool
pub fn is_too_deep(&self, depth: usize) -> bool
Check if we’ve exceeded maximum depth
Trait Implementations§
Source§impl Debug for GoalManager
impl Debug for GoalManager
Auto Trait Implementations§
impl Freeze for GoalManager
impl RefUnwindSafe for GoalManager
impl Send for GoalManager
impl Sync for GoalManager
impl Unpin for GoalManager
impl UnwindSafe for GoalManager
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