pub enum Error {
InvalidBounds {
low: f64,
high: f64,
},
InvalidLogBounds,
InvalidStep,
EmptyChoices,
ParameterConflict {
name: String,
reason: String,
},
NoCompletedTrials,
InvalidGamma(f64),
InvalidBandwidth(f64),
EmptySamples,
Internal(&'static str),
}Variants§
InvalidBounds
Returned when the lower bound is greater than the upper bound.
InvalidLogBounds
Returned when log scale is used with non-positive bounds.
InvalidStep
Returned when step size is not positive.
EmptyChoices
Returned when categorical choices are empty.
ParameterConflict
Returned when a parameter is suggested with a different configuration.
Fields
NoCompletedTrials
Returned when requesting the best trial but no trials have completed.
InvalidGamma(f64)
Returned when gamma is not in the valid range (0.0, 1.0).
InvalidBandwidth(f64)
Returned when bandwidth is not positive.
EmptySamples
Returned when KDE is created with empty samples.
Internal(&'static str)
Returned when an internal invariant is violated.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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