#[non_exhaustive]pub enum SeriesError {
Show 17 variants
InvalidPoint {
index: usize,
source: Error,
},
InvalidInterpolatedPoint {
sample: usize,
source: Error,
},
SmoothInterpolationFailed {
sample: usize,
parameter: f64,
},
InvalidSmoothSampling {
samples_per_interval: u32,
maximum: u32,
},
TooManySmoothSamples {
requested: usize,
maximum: usize,
},
InvalidMarkerSize {
size: u32,
},
EmptyContourStyleCollection,
EmptyContourBandStyleCollection,
InvalidScalarMapResolution {
value: usize,
},
InvalidScalarMapOpacity {
opacity: f64,
},
InvalidContourColorRange {
minimum: f64,
maximum: f64,
stroke_width: u32,
},
InvalidContourLegendStride {
stride: usize,
},
ContourDisplay(ContourDisplayError),
ScalarMapField(FieldError),
Polygon(PolygonError),
Annotation(AnnotationError),
Marker {
index: Option<usize>,
source: MarkerError,
},
}Expand description
Backend-independent failures while preparing ternary series geometry.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidPoint
A source composition could not be validated or projected.
InvalidInterpolatedPoint
A generated interpolation sample is materially invalid.
SmoothInterpolationFailed
spline1d could not evaluate a parameter inside the source domain.
InvalidSmoothSampling
The fixed fallback sampling density is zero or exceeds its guardrail.
TooManySmoothSamples
The requested curve would exceed the bounded fallback sample count.
InvalidMarkerSize
Marker size zero has no useful rendering semantics.
EmptyContourStyleCollection
An ordered contour style collection contained no styles.
EmptyContourBandStyleCollection
An ordered filled-contour style collection contained no styles.
InvalidScalarMapResolution
Scalar-map micro-triangulation was zero or exceeded the guardrail.
InvalidScalarMapOpacity
Scalar-map opacity was not a finite value in the inclusive zero-to-one range.
InvalidContourColorRange
A continuous contour colour range or stroke width was invalid.
InvalidContourLegendStride
An automatic contour legend stride was zero.
ContourDisplay(ContourDisplayError)
Contour label or colour-bar rendering configuration was invalid.
ScalarMapField(FieldError)
Scalar-map field access failed despite an already validated field.
Polygon(PolygonError)
Polygon validation, projection, or clipping preparation failed.
Annotation(AnnotationError)
A ternary text annotation could not be prepared.
Marker
A scientific marker configuration was invalid for an optional source
index. None denotes a legacy uniform marker before point preparation.
Trait Implementations§
Source§impl Clone for SeriesError
impl Clone for SeriesError
Source§impl Debug for SeriesError
impl Debug for SeriesError
Source§impl Display for SeriesError
impl Display for SeriesError
Source§impl Error for SeriesError
impl Error for SeriesError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()