#[non_exhaustive]pub enum HistogramError {
EmptyData,
InvalidBinCount,
InvalidNumericValue {
value: String,
},
Barplot(BarplotError),
}Expand description
Errors returned by histogram construction.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyData
Input data was empty.
InvalidBinCount
nbins was set to zero.
InvalidNumericValue
A data value could not be parsed as a finite number.
Barplot(BarplotError)
Underlying barplot construction failed.
Trait Implementations§
Source§impl Debug for HistogramError
impl Debug for HistogramError
Source§impl Display for HistogramError
impl Display for HistogramError
Source§impl Error for HistogramError
impl Error for HistogramError
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 From<BarplotError> for HistogramError
impl From<BarplotError> for HistogramError
Source§fn from(source: BarplotError) -> Self
fn from(source: BarplotError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HistogramError
impl PartialEq for HistogramError
impl StructuralPartialEq for HistogramError
Auto Trait Implementations§
impl Freeze for HistogramError
impl RefUnwindSafe for HistogramError
impl Send for HistogramError
impl Sync for HistogramError
impl Unpin for HistogramError
impl UnsafeUnpin for HistogramError
impl UnwindSafe for HistogramError
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