#[non_exhaustive]pub enum ValueOrder {
Ascending,
Descending,
Lcv,
Random,
}Expand description
How search orders the values of the branching variable.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ascending
Smallest value first.
Descending
Largest value first.
Lcv
The value that leaves the most values in all domains after propagation first
(“least constraining value”). Values that propagation refutes are skipped and count as
Stats::failures. Costs one propagation per value, so it pays
off when wrong choices are expensive.
Random
A random order, from the solver’s seed (Solver::set_seed).
Repeated searches with different seeds sample different solutions; see
Solver::sample.
Trait Implementations§
Source§impl Clone for ValueOrder
impl Clone for ValueOrder
impl Copy for ValueOrder
Source§impl Debug for ValueOrder
impl Debug for ValueOrder
Source§impl Default for ValueOrder
impl Default for ValueOrder
impl Eq for ValueOrder
Source§impl Hash for ValueOrder
impl Hash for ValueOrder
Source§impl PartialEq for ValueOrder
impl PartialEq for ValueOrder
impl StructuralPartialEq for ValueOrder
Auto Trait Implementations§
impl Forget for ValueOrder
impl Freeze for ValueOrder
impl Move for ValueOrder
impl RefUnwindSafe for ValueOrder
impl Send for ValueOrder
impl Sync for ValueOrder
impl Unpin for ValueOrder
impl UnsafeUnpin for ValueOrder
impl UnwindSafe for ValueOrder
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