#[non_exhaustive]pub enum PlotError {
SeriesLengthMismatch {
expected: usize,
got: usize,
},
EmptyData,
UnknownColumn(String),
Io(Error),
UnsupportedFormat(String),
FontLoad(String),
}Expand description
Errors that can occur in plotkit operations.
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.
SeriesLengthMismatch
X and Y series have different lengths.
Fields
EmptyData
Data series is empty.
UnknownColumn(String)
Referenced column not found (for DataFrame integrations).
Io(Error)
An I/O error occurred.
UnsupportedFormat(String)
The requested output format is not supported.
FontLoad(String)
Failed to load or render with a font.
Trait Implementations§
Source§impl Error for PlotError
impl Error for PlotError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for PlotError
impl !UnwindSafe for PlotError
impl Freeze for PlotError
impl Send for PlotError
impl Sync for PlotError
impl Unpin for PlotError
impl UnsafeUnpin for PlotError
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