pub struct NoStrategy;
Expand description
A Strategy which does nothing. This is to be used in backtracking strategies to define that no further logic shall be applied after trying an option.
Trait Implementations§
Source§impl Clone for NoStrategy
impl Clone for NoStrategy
Source§fn clone(&self) -> NoStrategy
fn clone(&self) -> NoStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Strategy for NoStrategy
impl Strategy for NoStrategy
Source§fn apply(&self, _: &mut SudokuInfo<impl Constraint + Clone>) -> bool
fn apply(&self, _: &mut SudokuInfo<impl Constraint + Clone>) -> bool
Applies this strategy to the given Sudoku. The strategy may rely on and
modify the information in the given
sudoku_info
. This instance is
given to other strategies that participate in the solution and/or
future iterations of the same strategy. It can thus be used to
communicate insights. Read moreAuto Trait Implementations§
impl Freeze for NoStrategy
impl RefUnwindSafe for NoStrategy
impl Send for NoStrategy
impl Sync for NoStrategy
impl Unpin for NoStrategy
impl UnwindSafe for NoStrategy
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