Enum rlifesrc_lib::save::ReasonSer
source · pub enum ReasonSer {
Known,
Decide,
Rule(Coord),
Sym(Coord),
Deduce,
Clause(Vec<Coord>),
TryAnother(usize),
}
Available on crate feature
serde
only.Expand description
A representation of reasons for setting a cell which can be easily serialized.
Variants§
Known
Known before the search starts,
Decide
Decides the state of a cell by choice.
Rule(Coord)
Deduced from the rule when constitifying another cell.
Sym(Coord)
Deduced from symmetry.
Deduce
Deduced from conflicts.
Clause(Vec<Coord>)
Deduced from a learnt clause.
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<'de> Deserialize<'de> for ReasonSer
impl<'de> Deserialize<'de> for ReasonSer
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ReasonSer
impl PartialEq for ReasonSer
impl Eq for ReasonSer
impl StructuralEq for ReasonSer
impl StructuralPartialEq for ReasonSer
Auto Trait Implementations§
impl RefUnwindSafe for ReasonSer
impl Send for ReasonSer
impl Sync for ReasonSer
impl Unpin for ReasonSer
impl UnwindSafe for ReasonSer
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