pub struct UnitSearch<L: Literal, S: LiteralStorage<L>, A: Assignment>(/* private fields */);Expand description
A simple unit propagation strategy that iterates through all clauses.
Trait Implementations§
Source§impl<L: Clone + Literal, S: Clone + LiteralStorage<L>, A: Clone + Assignment> Clone for UnitSearch<L, S, A>
impl<L: Clone + Literal, S: Clone + LiteralStorage<L>, A: Clone + Assignment> Clone for UnitSearch<L, S, A>
Source§fn clone(&self) -> UnitSearch<L, S, A>
fn clone(&self) -> UnitSearch<L, S, A>
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<L: Debug + Literal, S: Debug + LiteralStorage<L>, A: Debug + Assignment> Debug for UnitSearch<L, S, A>
impl<L: Debug + Literal, S: Debug + LiteralStorage<L>, A: Debug + Assignment> Debug for UnitSearch<L, S, A>
Source§impl<L: Default + Literal, S: Default + LiteralStorage<L>, A: Default + Assignment> Default for UnitSearch<L, S, A>
impl<L: Default + Literal, S: Default + LiteralStorage<L>, A: Default + Assignment> Default for UnitSearch<L, S, A>
Source§fn default() -> UnitSearch<L, S, A>
fn default() -> UnitSearch<L, S, A>
Returns the “default value” for a type. Read more
Source§impl<L: PartialEq + Literal, S: PartialEq + LiteralStorage<L>, A: PartialEq + Assignment> PartialEq for UnitSearch<L, S, A>
impl<L: PartialEq + Literal, S: PartialEq + LiteralStorage<L>, A: PartialEq + Assignment> PartialEq for UnitSearch<L, S, A>
Source§impl<L: Literal, S: LiteralStorage<L>, A: Assignment> Propagator<L, S, A> for UnitSearch<L, S, A>
impl<L: Literal, S: LiteralStorage<L>, A: Assignment> Propagator<L, S, A> for UnitSearch<L, S, A>
Source§fn add_clause(&mut self, _: &Clause<L, S>, _: usize)
fn add_clause(&mut self, _: &Clause<L, S>, _: usize)
Informs the propagator about a new clause being added to the formula.
This is particularly relevant for watched literal schemes to set up watches. Read more
Source§fn propagate(
&mut self,
trail: &mut Trail<L, S>,
assignment: &mut A,
cnf: &mut Cnf<L, S>,
) -> Option<usize>
fn propagate( &mut self, trail: &mut Trail<L, S>, assignment: &mut A, cnf: &mut Cnf<L, S>, ) -> Option<usize>
Performs propagation based on the current assignments in the
trail. Read moreSource§fn num_propagations(&self) -> usize
fn num_propagations(&self) -> usize
Returns the total number of propagations performed by this instance.
Source§fn cleanup_learnt(&mut self, _: usize)
fn cleanup_learnt(&mut self, _: usize)
Cleans up internal propagator state related to learnt clauses. Read more
impl<L: Eq + Literal, S: Eq + LiteralStorage<L>, A: Eq + Assignment> Eq for UnitSearch<L, S, A>
impl<L: Literal, S: LiteralStorage<L>, A: Assignment> StructuralPartialEq for UnitSearch<L, S, A>
Auto Trait Implementations§
impl<L, S, A> Freeze for UnitSearch<L, S, A>
impl<L, S, A> RefUnwindSafe for UnitSearch<L, S, A>
impl<L, S, A> Send for UnitSearch<L, S, A>
impl<L, S, A> Sync for UnitSearch<L, S, A>
impl<L, S, A> Unpin for UnitSearch<L, S, A>
impl<L, S, A> UnwindSafe for UnitSearch<L, S, A>
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