pub enum Reason {
NotANumber {
at: usize,
},
Worse {
than: f64,
at: usize,
},
OutOfBounds {
value: f64,
bound: f64,
},
NotImproving {
since: usize,
steps: usize,
},
}Expand description
Why a trial is not worth another epoch. Structured and not a string, because how many were pruned, and for which of the three reasons is the question you ask of a search that pruned too much.
Variants§
NotANumber
It reported something that is not a number. Every scheme prunes this.
Worse
Worse at this step than the bar the others set.
OutOfBounds
Outside the bounds that were declared hopeless.
NotImproving
It has not improved on its own best for long enough.
Trait Implementations§
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Freeze for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnsafeUnpin for Reason
impl UnwindSafe for Reason
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