pub enum ObjectiveEvalKind {
Recoverable,
Fatal,
}Expand description
Whether a failed objective evaluation invalidates the whole run or only the point it was evaluated at.
This is a property of the failure, decided by the producer that knows what went wrong. It is not recoverable from the rendered message, and a consumer that tries to guess it from text is guessing.
Variants§
Recoverable
This point is unusable; the solver should treat the trial as infeasible, back off, and continue.
Fatal
The run cannot continue.
Trait Implementations§
Source§impl Clone for ObjectiveEvalKind
impl Clone for ObjectiveEvalKind
Source§fn clone(&self) -> ObjectiveEvalKind
fn clone(&self) -> ObjectiveEvalKind
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 Copy for ObjectiveEvalKind
Source§impl Debug for ObjectiveEvalKind
impl Debug for ObjectiveEvalKind
impl Eq for ObjectiveEvalKind
Source§impl PartialEq for ObjectiveEvalKind
impl PartialEq for ObjectiveEvalKind
impl StructuralPartialEq for ObjectiveEvalKind
Auto Trait Implementations§
impl Freeze for ObjectiveEvalKind
impl RefUnwindSafe for ObjectiveEvalKind
impl Send for ObjectiveEvalKind
impl Sync for ObjectiveEvalKind
impl Unpin for ObjectiveEvalKind
impl UnsafeUnpin for ObjectiveEvalKind
impl UnwindSafe for ObjectiveEvalKind
Blanket Implementations§
impl<T> Boilerplate for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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