Enum sampling::histogram::HistErrors
source · pub enum HistErrors {
NoBins,
IntervalWidthZero,
OutsideHist,
Underflow,
Overflow,
UsizeCastError,
CastError,
InvalidVal,
ModuloError,
InvalidOverlap,
EmptySlice,
}
Expand description
Possible Errors of the traits Histogram
and HistogramVal
Variants§
NoBins
A histogram without any bins does not make sense!
IntervalWidthZero
Nothing can hit the bin! (left >= right?)
OutsideHist
Invalid value
Underflow
Underflow occurred
Overflow
Overflow occurred,
UsizeCastError
Error while casting to usize
CastError
Something went wrong wile casting!
InvalidVal
Could be NAN, INFINITY or similar
ModuloError
Cannot create requested interval with bins, that all have the same width!
InvalidOverlap
Cannot create the requested overlap!
This can, for example, happen, if you have the interval [1,3] and try to create more than two overlapping intervals with overlap 1 from this, since we can only create [1,2] and [2,3], so only two intervals.
EmptySlice
Unable to perform operation on empty slice
Trait Implementations§
source§impl Clone for HistErrors
impl Clone for HistErrors
source§fn clone(&self) -> HistErrors
fn clone(&self) -> HistErrors
Returns a copy 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 HistErrors
impl Debug for HistErrors
source§impl<'de> Deserialize<'de> for HistErrors
impl<'de> Deserialize<'de> for HistErrors
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<HistErrors> for GlueErrors
impl From<HistErrors> for GlueErrors
source§fn from(e: HistErrors) -> Self
fn from(e: HistErrors) -> Self
Converts to this type from the input type.
source§impl PartialEq for HistErrors
impl PartialEq for HistErrors
source§fn eq(&self, other: &HistErrors) -> bool
fn eq(&self, other: &HistErrors) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for HistErrors
impl Serialize for HistErrors
impl Eq for HistErrors
impl StructuralEq for HistErrors
impl StructuralPartialEq for HistErrors
Auto Trait Implementations§
impl RefUnwindSafe for HistErrors
impl Send for HistErrors
impl Sync for HistErrors
impl Unpin for HistErrors
impl UnwindSafe for HistErrors
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
§impl<S, T> Cast<T> for Swhere
T: Conv<S>,
impl<S, T> Cast<T> for Swhere
T: Conv<S>,
§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
§fn cast_approx(self) -> T
fn cast_approx(self) -> T
§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
§fn try_cast_trunc(self) -> Result<T, Error>
fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
§fn try_cast_nearest(self) -> Result<T, Error>
fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
§fn try_cast_floor(self) -> Result<T, Error>
fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
§fn try_cast_ceil(self) -> Result<T, Error>
fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more