pub enum DriftWeightsError {
NonFinite,
Negative,
SumNotOne(f32),
}Expand description
Errors from validating DriftWeights.
Variants§
NonFinite
One or more weights are NaN or Infinity.
Negative
One or more weights are negative.
SumNotOne(f32)
Weights do not sum to 1.0 (±epsilon). Contains the actual sum.
Trait Implementations§
Source§impl Clone for DriftWeightsError
impl Clone for DriftWeightsError
Source§fn clone(&self) -> DriftWeightsError
fn clone(&self) -> DriftWeightsError
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 DriftWeightsError
impl Debug for DriftWeightsError
Source§impl Display for DriftWeightsError
impl Display for DriftWeightsError
Source§impl Error for DriftWeightsError
impl Error for DriftWeightsError
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()
Source§impl PartialEq for DriftWeightsError
impl PartialEq for DriftWeightsError
impl StructuralPartialEq for DriftWeightsError
Auto Trait Implementations§
impl Freeze for DriftWeightsError
impl RefUnwindSafe for DriftWeightsError
impl Send for DriftWeightsError
impl Sync for DriftWeightsError
impl Unpin for DriftWeightsError
impl UnwindSafe for DriftWeightsError
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