#[non_exhaustive]pub enum ChartError {
EmptyData,
LengthMismatch {
expected: usize,
got: usize,
},
InvalidData {
layer: usize,
detail: String,
},
DimensionMismatch {
layer: usize,
x_len: usize,
y_len: usize,
},
InvalidParameter(String),
Gfx(GfxError),
Io(Error),
}Expand description
Errors produced by esoc-chart 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.
EmptyData
No data provided.
LengthMismatch
Mismatched array lengths.
InvalidData
Layer contains invalid data (NaN, Inf, etc.).
DimensionMismatch
X and Y data have different lengths in a layer.
InvalidParameter(String)
Invalid chart parameter.
Gfx(GfxError)
Underlying graphics error.
Io(Error)
I/O error.
Trait Implementations§
Source§impl Debug for ChartError
impl Debug for ChartError
Source§impl Display for ChartError
impl Display for ChartError
Source§impl Error for ChartError
impl Error for ChartError
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<Error> for ChartError
impl From<Error> for ChartError
Auto Trait Implementations§
impl Freeze for ChartError
impl !RefUnwindSafe for ChartError
impl Send for ChartError
impl Sync for ChartError
impl Unpin for ChartError
impl UnsafeUnpin for ChartError
impl !UnwindSafe for ChartError
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