pub enum SatResultWithModel<'st> {
Unsat,
Sat(Model<'st>),
Unknown,
}
Expand description
The satisfiability result produced by a solver, where the
Sat
variant carries the satisfying model as
well.
Variants§
Unsat
The solver produced unsat
Sat(Model<'st>)
The solver produced sat
and the associated model
Unknown
The solver produced unknown
Implementations§
Source§impl<'st> SatResultWithModel<'st>
impl<'st> SatResultWithModel<'st>
Sourcepub fn expect_sat(self) -> Result<Model<'st>, Error>
pub fn expect_sat(self) -> Result<Model<'st>, Error>
Expect the result to be sat
returning the satisfying model. If not
sat
, returns an error.
Trait Implementations§
Auto Trait Implementations§
impl<'st> Freeze for SatResultWithModel<'st>
impl<'st> !RefUnwindSafe for SatResultWithModel<'st>
impl<'st> !Send for SatResultWithModel<'st>
impl<'st> !Sync for SatResultWithModel<'st>
impl<'st> Unpin for SatResultWithModel<'st>
impl<'st> !UnwindSafe for SatResultWithModel<'st>
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 moreSource§impl<'st, T> IntoWithStorage<'st, T> for T
impl<'st, T> IntoWithStorage<'st, T> for T
Source§fn into_with_storage(self, _st: &'st Storage) -> T
fn into_with_storage(self, _st: &'st Storage) -> T
Construct a
STerm
with the presence of Storage