pub enum PropagatorType {
WatchedLiterals,
UnitSearch,
UnitPropagationWithPureLiterals,
}Expand description
Enum representing the type of propagator to use in the SAT solver.
Variants§
WatchedLiterals
Watched literals propagator, which uses the watched literals scheme for efficient unit propagation.
UnitSearch
Unit search propagator, which iterates through clauses to find unit clauses.
UnitPropagationWithPureLiterals
Unit propagation with pure literals, which combines unit propagation with the heuristic of assigning pure literals.
Implementations§
Source§impl PropagatorType
impl PropagatorType
Sourcepub fn to_impl<L: Literal, S: LiteralStorage<L>, A: Assignment>(
self,
cnf: &Cnf<L, S>,
) -> PropagatorImpls<L, S, A>
pub fn to_impl<L: Literal, S: LiteralStorage<L>, A: Assignment>( self, cnf: &Cnf<L, S>, ) -> PropagatorImpls<L, S, A>
Converts the PropagatorType to a specific propagator implementation.
Trait Implementations§
Source§impl Clone for PropagatorType
impl Clone for PropagatorType
Source§fn clone(&self) -> PropagatorType
fn clone(&self) -> PropagatorType
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 PropagatorType
impl Debug for PropagatorType
Source§impl Default for PropagatorType
impl Default for PropagatorType
Source§fn default() -> PropagatorType
fn default() -> PropagatorType
Returns the “default value” for a type. Read more
Source§impl Display for PropagatorType
impl Display for PropagatorType
Source§impl Hash for PropagatorType
impl Hash for PropagatorType
Source§impl PartialEq for PropagatorType
impl PartialEq for PropagatorType
Source§impl ValueEnum for PropagatorType
impl ValueEnum for PropagatorType
impl Copy for PropagatorType
impl Eq for PropagatorType
impl StructuralPartialEq for PropagatorType
Auto Trait Implementations§
impl Freeze for PropagatorType
impl RefUnwindSafe for PropagatorType
impl Send for PropagatorType
impl Sync for PropagatorType
impl Unpin for PropagatorType
impl UnwindSafe for PropagatorType
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