Enum rlifesrc_lib::search::lifesrc::Reason
source · pub enum Reason {
Known,
Decide,
Deduce,
TryAnother(usize),
}
Expand description
Reasons for setting a cell.
Variants§
Known
Known before the search starts,
Decide
Decides the state of a cell by choice.
Deduce
Determines the state of a cell by other cells.
TryAnother(usize)
Tries another state of a cell when the original state leads to a conflict.
Remembers the number of remaining states to try.
Only used in Generations rules.
Trait Implementations§
source§impl PartialEq for Reason
impl PartialEq for Reason
source§impl<R: Rule> Reason<R> for Reason
impl<R: Rule> Reason<R> for Reason
impl Copy for Reason
impl Eq for Reason
impl StructuralEq for Reason
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnwindSafe for Reason
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