pub struct Threshold {
pub lower: Option<f64>,
pub upper: Option<f64>,
}Expand description
Prune what leaves the bounds you already know are hopeless. The only scheme
that needs no other trial, so it works on the very first one — where a
diverged configuration costs most and the other two have nothing to compare
against. With neither bound it still prunes what is not a number, which is
what diverged is.
Fields§
§lower: Option<f64>Below this is hopeless. None for no floor.
upper: Option<f64>Above this is hopeless. None for no ceiling.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Threshold
Auto Trait Implementations§
impl Freeze for Threshold
impl RefUnwindSafe for Threshold
impl Send for Threshold
impl Sync for Threshold
impl Unpin for Threshold
impl UnsafeUnpin for Threshold
impl UnwindSafe for Threshold
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