#[non_exhaustive]pub enum LineplotError {
LengthMismatch,
EmptySeries,
InvalidAxisLimits,
InvalidNumericValue {
value: String,
},
DensityPlotRequired,
}Expand description
Errors returned by lineplot, scatterplot, stairs, and density 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.
LengthMismatch
The x and y arrays have different lengths.
EmptySeries
Input arrays are empty.
InvalidAxisLimits
Explicit axis limits contain non-finite values.
InvalidNumericValue
A data value could not be parsed as a finite number.
DensityPlotRequired
densityplot_add was called on a non-density plot.
Trait Implementations§
Source§impl Debug for LineplotError
impl Debug for LineplotError
Source§impl Display for LineplotError
impl Display for LineplotError
Source§impl Error for LineplotError
impl Error for LineplotError
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 PartialEq for LineplotError
impl PartialEq for LineplotError
impl StructuralPartialEq for LineplotError
Auto Trait Implementations§
impl Freeze for LineplotError
impl RefUnwindSafe for LineplotError
impl Send for LineplotError
impl Sync for LineplotError
impl Unpin for LineplotError
impl UnsafeUnpin for LineplotError
impl UnwindSafe for LineplotError
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