#[non_exhaustive]pub enum TernaryChartError<E: StdError + Send + Sync> {
Geometry(Error),
Series(SeriesError),
Drawing(DrawingAreaErrorKind<E>),
InvalidMajorStep {
value: f64,
},
InvalidTickCount {
count: usize,
},
InvalidTickStep {
value: f64,
},
InvalidTickValue {
value: f64,
},
InsufficientDrawingArea {
width: u32,
height: u32,
},
}Expand description
An error produced while laying out or drawing a ternary chart.
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.
Geometry(Error)
Backend-independent geometry or viewport preparation failed.
Series(SeriesError)
Backend-independent series preparation failed.
Drawing(DrawingAreaErrorKind<E>)
Plotters could not complete a drawing operation.
InvalidMajorStep
The common major-grid step is unusable.
InvalidTickCount
A tick specification could not produce a meaningful sequence.
InvalidTickStep
A tick step is not finite, positive, or safely bounded.
InvalidTickValue
An explicit tick value is not finite or lies outside unit composition space.
InsufficientDrawingArea
Caption and margins left no usable plotting rectangle.
Trait Implementations§
Source§impl<E: StdError + Send + Sync + 'static> Error for TernaryChartError<E>
impl<E: StdError + Send + Sync + 'static> Error for TernaryChartError<E>
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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<E: StdError + Send + Sync> From<DrawingAreaErrorKind<E>> for TernaryChartError<E>
impl<E: StdError + Send + Sync> From<DrawingAreaErrorKind<E>> for TernaryChartError<E>
Source§fn from(error: DrawingAreaErrorKind<E>) -> Self
fn from(error: DrawingAreaErrorKind<E>) -> Self
Converts to this type from the input type.
Source§impl<E: StdError + Send + Sync> From<SeriesError> for TernaryChartError<E>
impl<E: StdError + Send + Sync> From<SeriesError> for TernaryChartError<E>
Source§fn from(error: SeriesError) -> Self
fn from(error: SeriesError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> !RefUnwindSafe for TernaryChartError<E>
impl<E> !UnwindSafe for TernaryChartError<E>
impl<E> Freeze for TernaryChartError<E>where
DrawingAreaErrorKind<E>: Freeze,
impl<E> Send for TernaryChartError<E>where
DrawingAreaErrorKind<E>: Send,
impl<E> Sync for TernaryChartError<E>where
DrawingAreaErrorKind<E>: Sync,
impl<E> Unpin for TernaryChartError<E>where
DrawingAreaErrorKind<E>: Unpin,
impl<E> UnsafeUnpin for TernaryChartError<E>where
DrawingAreaErrorKind<E>: UnsafeUnpin,
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