pub enum ChangeReason {
Branch {
variable: VariableId,
value: i32,
},
Propagator {
propagator: PropagatorId,
variable: VariableId,
removed_value: Option<i32>,
bound: Option<(BoundKind, i32)>,
},
PropagatorConflict {
literals: Vec<(VariableId, i32)>,
},
}Expand description
Why a domain change occurred.
Variants§
Branch
Search assigned a value during branching.
Propagator
A propagator removed values or tightened bounds.
PropagatorConflict
A propagator detected infeasibility and recorded contributing assignments.
Fields
§
literals: Vec<(VariableId, i32)>Branch literals that jointly caused the conflict.
Trait Implementations§
Source§impl Clone for ChangeReason
impl Clone for ChangeReason
Source§fn clone(&self) -> ChangeReason
fn clone(&self) -> ChangeReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChangeReason
impl Debug for ChangeReason
impl Eq for ChangeReason
Source§impl PartialEq for ChangeReason
impl PartialEq for ChangeReason
Source§fn eq(&self, other: &ChangeReason) -> bool
fn eq(&self, other: &ChangeReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChangeReason
Auto Trait Implementations§
impl Freeze for ChangeReason
impl RefUnwindSafe for ChangeReason
impl Send for ChangeReason
impl Sync for ChangeReason
impl Unpin for ChangeReason
impl UnsafeUnpin for ChangeReason
impl UnwindSafe for ChangeReason
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