pub enum SolveResult<Sol: Valuation, Fail = ()> {
Satisfied(Sol),
Unsatisfiable(Fail),
Unknown,
}Expand description
The result of a Solver::solve call.
Variants§
Satisfied(Sol)
The solver found a satisfying assignment.
Unsatisfiable(Fail)
The solver proved no satisfying assignment exists.
Unknown
The solver was unable to determine whether a satisfying assignment exists given the computational limits.
Trait Implementations§
Source§impl<Sol: Clone + Valuation, Fail: Clone> Clone for SolveResult<Sol, Fail>
impl<Sol: Clone + Valuation, Fail: Clone> Clone for SolveResult<Sol, Fail>
Source§fn clone(&self) -> SolveResult<Sol, Fail>
fn clone(&self) -> SolveResult<Sol, Fail>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<Sol: Copy + Valuation, Fail: Copy> Copy for SolveResult<Sol, Fail>
impl<Sol: Eq + Valuation, Fail: Eq> Eq for SolveResult<Sol, Fail>
Source§impl<Sol: PartialEq + Valuation, Fail: PartialEq> PartialEq for SolveResult<Sol, Fail>
impl<Sol: PartialEq + Valuation, Fail: PartialEq> PartialEq for SolveResult<Sol, Fail>
Source§fn eq(&self, other: &SolveResult<Sol, Fail>) -> bool
fn eq(&self, other: &SolveResult<Sol, Fail>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<Sol: Valuation, Fail> StructuralPartialEq for SolveResult<Sol, Fail>
Auto Trait Implementations§
impl<Sol, Fail> Freeze for SolveResult<Sol, Fail>
impl<Sol, Fail> RefUnwindSafe for SolveResult<Sol, Fail>where
Sol: RefUnwindSafe,
Fail: RefUnwindSafe,
impl<Sol, Fail> Send for SolveResult<Sol, Fail>
impl<Sol, Fail> Sync for SolveResult<Sol, Fail>
impl<Sol, Fail> Unpin for SolveResult<Sol, Fail>
impl<Sol, Fail> UnsafeUnpin for SolveResult<Sol, Fail>where
Sol: UnsafeUnpin,
Fail: UnsafeUnpin,
impl<Sol, Fail> UnwindSafe for SolveResult<Sol, Fail>where
Sol: UnwindSafe,
Fail: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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