pub enum HistErrors {
NoBins,
IntervalWidthZero,
OutsideHist,
Underflow,
Overflow,
UsizeCastError,
CastError,
InvalidVal,
ModuloError,
InvalidOverlap,
EmptySlice,
Alignment,
}
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
Alignment
Cannot create the histograms due to Alignment issues
Example:
Lets say we have hist one with bins [[0,1], [2,3], [4,5]]
And another one with bins [[5,6], [7,8]]
. Now we cannot create
an encapsulating histogram, since the number 5 appears in 2 different bins!
Trait Implementations§
Source§impl Clone for HistErrors
impl Clone for HistErrors
Source§fn clone(&self) -> HistErrors
fn clone(&self) -> HistErrors
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
Source§impl From<HistErrors> for GlueErrors
impl From<HistErrors> for GlueErrors
Source§fn from(e: HistErrors) -> Self
fn from(e: HistErrors) -> Self
Source§impl PartialEq for HistErrors
impl PartialEq for HistErrors
Source§impl Serialize for HistErrors
impl Serialize for HistErrors
impl Eq for HistErrors
impl StructuralPartialEq for HistErrors
Auto Trait Implementations§
impl Freeze for HistErrors
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
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>
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>
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