pub enum SearchRange {
Finite {
low: f64,
high: f64,
},
Infinite {
average: f64,
stddev: f64,
},
}
Expand description
Search range for a single dimension.
SearchRange
describes a search range for a single dimension and
Vec<SearchRange>
describes a multidimensional search space (which can be
passed to Solver::new
).
Variants§
Trait Implementations§
Source§impl Clone for SearchRange
impl Clone for SearchRange
Source§fn clone(&self) -> SearchRange
fn clone(&self) -> SearchRange
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SearchRange
impl Debug for SearchRange
Source§impl From<RangeInclusive<f64>> for SearchRange
impl From<RangeInclusive<f64>> for SearchRange
Source§fn from(range: RangeInclusive<f64>) -> Self
fn from(range: RangeInclusive<f64>) -> Self
Converts to this type from the input type.
impl Copy for SearchRange
Auto Trait Implementations§
impl Freeze for SearchRange
impl RefUnwindSafe for SearchRange
impl Send for SearchRange
impl Sync for SearchRange
impl Unpin for SearchRange
impl UnwindSafe for SearchRange
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> 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