pub enum State {
INITIALIZING = 1,
CONFIGURING = 2,
STEADY = 4,
ADDING = 8,
SOLVING = 16,
SATISFIED = 32,
UNSATISFIED = 64,
DELETING = 128,
READY = 102,
VALID = 110,
INVALID = 129,
}Expand description
States are represented by a bit-set in order to combine them.
Variants§
INITIALIZING = 1
during initialization (invalid)
CONFIGURING = 2
configure options (with ‘set’)
STEADY = 4
ready to call ‘solve’
ADDING = 8
adding clause literals (zero missing)
SOLVING = 16
while solving (within ‘solve’)
SATISFIED = 32
satisfiable allows ‘val’
UNSATISFIED = 64
unsatisfiable allows ‘failed’
DELETING = 128
during and after deletion (invalid)
READY = 102
These combined states are used to check contracts. CONFIGURING | STEADY | SATISFIED | UNSATISFIED,
VALID = 110
READY | ADDING
INVALID = 129
INITIALIZING | DELETING
Trait Implementations§
impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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