pub struct CaDiCaLAssignment<'slf> { /* private fields */ }Available on
cadical_version=v2.0.0 only.Expand description
An assignment passed from CaDiCaL
This performs lazy conversion to Lit in order to avoid unnecessary memory allocations and
work
Implementations§
Source§impl CaDiCaLAssignment<'_>
impl CaDiCaLAssignment<'_>
Sourcepub fn iter(&self) -> impl Iterator<Item = Lit> + '_
pub fn iter(&self) -> impl Iterator<Item = Lit> + '_
Gets an iterator over the literals in the assignment
§Panics
If CaDiCaL passes an invalid IPASIR literal
Sourcepub fn to_owned(&self) -> Assignment
pub fn to_owned(&self) -> Assignment
Converts the clause into an owned rustsat::types::Assignment
This is costly because of IPASIR to Lit conversion and memory allocation
Trait Implementations§
Auto Trait Implementations§
impl<'slf> Freeze for CaDiCaLAssignment<'slf>
impl<'slf> RefUnwindSafe for CaDiCaLAssignment<'slf>
impl<'slf> Send for CaDiCaLAssignment<'slf>
impl<'slf> Sync for CaDiCaLAssignment<'slf>
impl<'slf> Unpin for CaDiCaLAssignment<'slf>
impl<'slf> UnwindSafe for CaDiCaLAssignment<'slf>
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> 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