pub enum RewlBuilderErr {
NonNormalThreshold,
Negative,
Empty,
HistBinCount,
LenMissmatch,
}
Expand description
§Errors
that can arise during the construction of RewlBuilder
Variants§
NonNormalThreshold
- The threshold for
log_f
needs to be a normal number. - That basically means: the number is neither zero, infinite, subnormal, or NaN. For more info, see the Documentation
Negative
log_f_threshold must not be negative
Empty
Histogram vector needs to contain at least one entry.
HistBinCount
Each histogram needs to have at least two bins. Though more than two bins are strongly recommended
LenMissmatch
Length of histogram vector and ensemble vector has to be the same!
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RewlBuilderErr
impl RefUnwindSafe for RewlBuilderErr
impl Send for RewlBuilderErr
impl Sync for RewlBuilderErr
impl Unpin for RewlBuilderErr
impl UnwindSafe for RewlBuilderErr
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> 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