pub enum RestarterType {
Luby,
Geometric,
Fixed,
Linear,
Never,
}Expand description
An enum representing the type of restarter to use in a SAT solver.
Variants§
Luby
The Luby restart strategy, which uses the Luby sequence for determining restart intervals.
Geometric
A geometric restart strategy, where the interval between restarts is multiplied by a constant factor N.
Fixed
A fixed interval restart strategy, where restarts occur every N conflicts (or other units).
Linear
A linear restart strategy, where the interval between restarts increases by a fixed amount N after each restart.
Never
A strategy that never triggers a restart.
Implementations§
Source§impl RestarterType
impl RestarterType
Sourcepub fn to_impl(self) -> RestarterImpls<3>
pub fn to_impl(self) -> RestarterImpls<3>
Returns a new instance of the corresponding restarter.
Trait Implementations§
Source§impl Clone for RestarterType
impl Clone for RestarterType
Source§fn clone(&self) -> RestarterType
fn clone(&self) -> RestarterType
Returns a duplicate of the value. Read more
1.0.0 · 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 RestarterType
impl Debug for RestarterType
Source§impl Default for RestarterType
impl Default for RestarterType
Source§fn default() -> RestarterType
fn default() -> RestarterType
Returns the “default value” for a type. Read more
Source§impl Display for RestarterType
impl Display for RestarterType
Source§impl Hash for RestarterType
impl Hash for RestarterType
Source§impl PartialEq for RestarterType
impl PartialEq for RestarterType
Source§impl ValueEnum for RestarterType
impl ValueEnum for RestarterType
impl Copy for RestarterType
impl Eq for RestarterType
impl StructuralPartialEq for RestarterType
Auto Trait Implementations§
impl Freeze for RestarterType
impl RefUnwindSafe for RestarterType
impl Send for RestarterType
impl Sync for RestarterType
impl Unpin for RestarterType
impl UnwindSafe for RestarterType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more