pub struct SolutionIterator<'solver, 'brancher, 'termination, B: Brancher, T> { /* private fields */ }Expand description
A struct which allows the retrieval of multiple solutions to a satisfaction problem.
Implementations§
source§impl<'solver, 'brancher, 'termination, B: Brancher, T: TerminationCondition> SolutionIterator<'solver, 'brancher, 'termination, B, T>
impl<'solver, 'brancher, 'termination, B: Brancher, T: TerminationCondition> SolutionIterator<'solver, 'brancher, 'termination, B, T>
sourcepub fn next_solution(&mut self) -> IteratedSolution<'_>
pub fn next_solution(&mut self) -> IteratedSolution<'_>
Find a new solution by blocking the previous solution from being found. Also calls the
Brancher::on_solution method from the Brancher used to run the initial solve.
Trait Implementations§
Auto Trait Implementations§
impl<'solver, 'brancher, 'termination, B, T> Freeze for SolutionIterator<'solver, 'brancher, 'termination, B, T>
impl<'solver, 'brancher, 'termination, B, T> !RefUnwindSafe for SolutionIterator<'solver, 'brancher, 'termination, B, T>
impl<'solver, 'brancher, 'termination, B, T> !Send for SolutionIterator<'solver, 'brancher, 'termination, B, T>
impl<'solver, 'brancher, 'termination, B, T> !Sync for SolutionIterator<'solver, 'brancher, 'termination, B, T>
impl<'solver, 'brancher, 'termination, B, T> Unpin for SolutionIterator<'solver, 'brancher, 'termination, B, T>
impl<'solver, 'brancher, 'termination, B, T> !UnwindSafe for SolutionIterator<'solver, 'brancher, 'termination, B, T>
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more