#[non_exhaustive]pub enum SpecError {
Version(u32),
Size,
Range([f64; 2]),
EmptySeries(String),
NonFinite(String),
}Expand description
Why a PlotSpec is invalid.
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.
Version(u32)
The spec was written for a newer version.
Size
Width or height is zero.
Range([f64; 2])
A fixed range is reversed or non-finite.
EmptySeries(String)
A series has no points.
NonFinite(String)
A series has a non-finite coordinate.
Trait Implementations§
Source§impl Error for SpecError
impl Error for SpecError
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()
impl StructuralPartialEq for SpecError
Auto Trait Implementations§
impl Forget for SpecError
impl Freeze for SpecError
impl Move for SpecError
impl RefUnwindSafe for SpecError
impl Send for SpecErrorwhere
RawVecInner: Send,
impl Sync for SpecErrorwhere
RawVecInner: Sync,
impl Unpin for SpecError
impl UnsafeUnpin for SpecError
impl UnwindSafe for SpecErrorwhere
RawVecInner: UnwindSafe,
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