#[non_exhaustive]pub enum LevelSetError {
InvalidEdgeLength(Scalar),
InvalidBounds,
InvalidLevel(Scalar),
NoCrossing {
level: Scalar,
},
NonFiniteSample {
point: Point3,
},
BudgetExceeded {
requested: usize,
limit: usize,
},
}Expand description
Why a level set could not be extracted.
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.
InvalidEdgeLength(Scalar)
The requested edge length is not a usable spacing.
InvalidBounds
The bounds are empty or not finite.
InvalidLevel(Scalar)
The level itself is not a finite value.
NoCrossing
The field never crosses the level inside the bounds.
Reported rather than answered with an empty mesh: a caller asking for a surface that is not there has a bug upstream, and a zero-triangle result looks like a successful extraction of nothing.
NonFiniteSample
The field returned a non-finite sample.
BudgetExceeded
The requested grid exceeds the sample budget.
Trait Implementations§
Source§impl Debug for LevelSetError
impl Debug for LevelSetError
Source§impl Display for LevelSetError
impl Display for LevelSetError
Source§impl Error for LevelSetError
impl Error for LevelSetError
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()
Source§impl PartialEq for LevelSetError
impl PartialEq for LevelSetError
impl StructuralPartialEq for LevelSetError
Auto Trait Implementations§
impl Freeze for LevelSetError
impl RefUnwindSafe for LevelSetError
impl Send for LevelSetError
impl Sync for LevelSetError
impl Unpin for LevelSetError
impl UnsafeUnpin for LevelSetError
impl UnwindSafe for LevelSetError
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