Enum rlifesrc_lib::search::backjump::Reason
source · pub enum Reason<R: Rule> {
Known,
Decide,
Rule(CellRef<R>),
Sym(CellRef<R>),
Deduce,
Clause(Vec<CellRef<R>>),
}
Expand description
Reasons for setting a cell, with informations for backjumping.
Variants§
Known
Known before the search starts,
Decide
Decides the state of a cell by choice.
Rule(CellRef<R>)
Deduced from the rule when constitifying another cell.
Sym(CellRef<R>)
Deduced from symmetry.
Deduce
Deduced from other cells or conflicts.
A general reason used as a fallback.
Clause(Vec<CellRef<R>>)
Deduced from a learnt clause.
Implementations§
Trait Implementations§
source§impl<R: Rule> PartialEq for Reason<R>
impl<R: Rule> PartialEq for Reason<R>
source§impl<R: Rule> Reason<R> for Reason<R>
impl<R: Rule> Reason<R> for Reason<R>
source§fn is_decided(&self) -> bool
fn is_decided(&self) -> bool
Decided or trying another state for generations rules.
impl<R: Rule> Eq for Reason<R>
Auto Trait Implementations§
impl<R> !RefUnwindSafe for Reason<R>
impl<R> !Send for Reason<R>
impl<R> !Sync for Reason<R>
impl<R> Unpin for Reason<R>
impl<R> !UnwindSafe for Reason<R>
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