Enum net_ensembles::sampling::HistErrors [−][src]
pub enum HistErrors {
NoBins,
IntervalWidthZero,
OutsideHist,
Underflow,
Overflow,
UsizeCastError,
CastError,
InvalidVal,
ModuloError,
EmptySlice,
}
Expand description
Possible Errors of the traits Histogram
and HistogramVal
Variants
A histogram without any bins does not make sense!
Nothing can hit the bin! (left >= right?)
Invalid value
Underflow occured
Overflow occured,
Error while casting to usize
Something went wrong wile casting!
Could be NAN, INFINITY or similar
Cannot create requested interval with bins, that all have the same width!
Unable to perform operation on empty slice
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<HistErrors, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<HistErrors, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Mutably borrows from an owned value. Read more
pub fn cast_trunc(self) -> T
pub fn cast_trunc(self) -> T
Cast to integer, truncating Read more
pub fn cast_nearest(self) -> T
pub fn cast_nearest(self) -> T
Cast to the nearest integer Read more
pub fn cast_floor(self) -> T
pub fn cast_floor(self) -> T
Cast the floor to an integer Read more
pub fn try_cast_trunc(self) -> Result<T, Error>
pub fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
pub fn try_cast_nearest(self) -> Result<T, Error>
pub fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
pub fn try_cast_floor(self) -> Result<T, Error>
pub fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
pub fn try_cast_ceil(self) -> Result<T, Error>
pub fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more