#[non_exhaustive]pub enum BarplotError {
LengthMismatch,
NegativeValuesUnsupported,
InvalidNumericValue {
value: String,
},
EmptyAppend,
UnknownBorderType {
name: String,
},
}Expand description
Errors returned by barplot construction and mutation.
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.
LengthMismatch
Labels and values slices have different lengths.
NegativeValuesUnsupported
A bar value is negative (only non-negative values are supported).
InvalidNumericValue
A value could not be parsed as a finite floating-point number.
EmptyAppend
Attempted to append an empty label/value set.
UnknownBorderType
The border name string does not match any known border type.
Trait Implementations§
Source§impl Debug for BarplotError
impl Debug for BarplotError
Source§impl Display for BarplotError
impl Display for BarplotError
Source§impl Error for BarplotError
impl Error for BarplotError
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 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 BarplotError
impl PartialEq for BarplotError
impl StructuralPartialEq for BarplotError
Auto Trait Implementations§
impl Freeze for BarplotError
impl RefUnwindSafe for BarplotError
impl Send for BarplotError
impl Sync for BarplotError
impl Unpin for BarplotError
impl UnsafeUnpin for BarplotError
impl UnwindSafe for BarplotError
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