#[non_exhaustive]pub enum ContourError {
Show 27 variants
ZeroSubdivisions,
AllocationOverflow,
IncorrectValueCount {
expected: usize,
actual: usize,
},
NonFiniteValue {
index: usize,
value: f64,
},
InvalidLatticeCoordinate {
i: usize,
j: usize,
k: usize,
subdivisions: usize,
},
InvalidVertexIndex {
index: usize,
vertex_count: usize,
},
NonFiniteLevel {
index: usize,
value: f64,
},
DuplicateLevel {
first: usize,
second: usize,
value: f64,
},
NonFiniteBandBreak {
index: usize,
value: f64,
},
DuplicateBandBreak {
first: usize,
second: usize,
value: f64,
},
UnorderedBandBreak {
previous_index: usize,
index: usize,
previous: f64,
value: f64,
},
UnsupportedFilledInterpolation,
UnclosedBandBoundary,
InvalidTolerance {
value_tolerance: f64,
geometry_tolerance: f64,
},
InvalidAdaptiveOptions {
max_depth: u8,
flatness_tolerance: f64,
},
InvalidRegularizationSpacing {
spacing: f64,
},
InvalidProjectionOptions {
tolerance: f64,
iterations: usize,
max_step: f64,
},
CubicFeatureUnavailable,
InsufficientStencil {
samples: usize,
},
FlatTriangle {
triangle: usize,
level: f64,
},
BranchingTopology {
degree: usize,
},
ZeroLengthPath,
InvalidClosedLoop,
ProjectionZeroGradient {
residual: f64,
},
ProjectionNonConvergence {
residual: f64,
iterations: usize,
},
PointOutsideGrid {
a: f64,
b: f64,
c: f64,
},
Interpolation(InterpolationError),
}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.
ZeroSubdivisions
AllocationOverflow
IncorrectValueCount
NonFiniteValue
InvalidLatticeCoordinate
InvalidVertexIndex
NonFiniteLevel
DuplicateLevel
NonFiniteBandBreak
DuplicateBandBreak
UnorderedBandBreak
UnsupportedFilledInterpolation
UnclosedBandBoundary
InvalidTolerance
InvalidAdaptiveOptions
InvalidRegularizationSpacing
InvalidProjectionOptions
InsufficientStencil
FlatTriangle
BranchingTopology
ZeroLengthPath
InvalidClosedLoop
ProjectionZeroGradient
ProjectionNonConvergence
PointOutsideGrid
Interpolation(InterpolationError)
Trait Implementations§
Source§impl Clone for ContourError
impl Clone for ContourError
Source§fn clone(&self) -> ContourError
fn clone(&self) -> ContourError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContourError
impl Debug for ContourError
Source§impl Display for ContourError
impl Display for ContourError
Source§impl Error for ContourError
impl Error for ContourError
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<FieldError> for ContourError
impl From<FieldError> for ContourError
Source§fn from(value: FieldError) -> ContourError
fn from(value: FieldError) -> ContourError
Converts to this type from the input type.
Source§impl From<InterpolationError> for ContourError
impl From<InterpolationError> for ContourError
Source§fn from(value: InterpolationError) -> ContourError
fn from(value: InterpolationError) -> ContourError
Converts to this type from the input type.
Source§impl PartialEq for ContourError
impl PartialEq for ContourError
impl StructuralPartialEq for ContourError
Auto Trait Implementations§
impl Freeze for ContourError
impl RefUnwindSafe for ContourError
impl Send for ContourError
impl Sync for ContourError
impl Unpin for ContourError
impl UnsafeUnpin for ContourError
impl UnwindSafe for ContourError
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