Struct chalk_engine::forest::ForestSolver
source · struct ForestSolver<'me, I: Interner> {
forest: &'me mut Forest<I>,
context: &'me SlgContextOps<'me, I>,
table: TableIndex,
answer: AnswerIndex,
}
Fields§
§forest: &'me mut Forest<I>
§context: &'me SlgContextOps<'me, I>
§table: TableIndex
§answer: AnswerIndex
Trait Implementations§
source§impl<'me, I: Interner> AnswerStream<I> for ForestSolver<'me, I>
impl<'me, I: Interner> AnswerStream<I> for ForestSolver<'me, I>
source§fn peek_answer(&mut self, should_continue: impl Fn() -> bool) -> AnswerResult<I>
fn peek_answer(&mut self, should_continue: impl Fn() -> bool) -> AnswerResult<I>
§Panics
Panics if a negative cycle was detected.
source§fn next_answer(&mut self, should_continue: impl Fn() -> bool) -> AnswerResult<I>
fn next_answer(&mut self, should_continue: impl Fn() -> bool) -> AnswerResult<I>
Gets the next answer for a given goal, incrementing the answer index.
Calling this or
peek_answer
again will give the next answer.Auto Trait Implementations§
impl<'me, I> Freeze for ForestSolver<'me, I>
impl<'me, I> !RefUnwindSafe for ForestSolver<'me, I>
impl<'me, I> !Send for ForestSolver<'me, I>
impl<'me, I> !Sync for ForestSolver<'me, I>
impl<'me, I> Unpin for ForestSolver<'me, I>
impl<'me, I> !UnwindSafe for ForestSolver<'me, I>
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