pub enum CdtError {
InvalidParameters(String),
TriangulationGeneration(String),
ErgodicsFailure(String),
UnsupportedDimension(u32),
ActionCalculation(String),
DelaunayGenerationFailed {
vertex_count: u32,
coordinate_range: (f64, f64),
attempt: u32,
underlying_error: String,
},
InvalidGenerationParameters {
issue: String,
provided_value: String,
expected_range: String,
},
ValidationFailed {
check: String,
detail: String,
},
}Expand description
Main error type for CDT operations.
Variants§
InvalidParameters(String)
Invalid triangulation parameters
TriangulationGeneration(String)
Triangulation generation failed
ErgodicsFailure(String)
Ergodic move failed
UnsupportedDimension(u32)
Invalid dimension specified
ActionCalculation(String)
Action calculation error
DelaunayGenerationFailed
Delaunay triangulation generation failed with detailed context
Fields
InvalidGenerationParameters
Invalid generation parameters detected before attempting triangulation
Fields
ValidationFailed
Validation of a constructed triangulation failed
Trait Implementations§
Source§impl Error for CdtError
impl Error for CdtError
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 CdtError
Auto Trait Implementations§
impl Freeze for CdtError
impl RefUnwindSafe for CdtError
impl Send for CdtError
impl Sync for CdtError
impl Unpin for CdtError
impl UnsafeUnpin for CdtError
impl UnwindSafe for CdtError
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