#[non_exhaustive]pub enum RefineError {
RaggedIndices(usize),
IndexOutOfRange(usize, u32),
InvalidTarget(Scalar),
SurfaceRefused(String),
BudgetExceeded {
produced: usize,
limit: usize,
},
}Expand description
Why a refinement could not be performed.
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.
RaggedIndices(usize)
The index buffer is not a whole number of triangles.
IndexOutOfRange(usize, u32)
A triangle references a vertex that does not exist.
InvalidTarget(Scalar)
An edge-length target must be a positive, finite length.
SurfaceRefused(String)
A surface refused to place a projected vertex.
Propagated rather than absorbed. Falling back to the linear midpoint would return four times the triangles with none of the promised accuracy, and the caller could not tell the difference.
BudgetExceeded
Refinement would exceed the triangle budget.
Reported rather than silently truncated: a caller that asked for a 1mm edge on a building-sized model wants to know its request was impossible, not receive a partially refined mesh that looks fine.
Trait Implementations§
Source§impl Debug for RefineError
impl Debug for RefineError
Source§impl Display for RefineError
impl Display for RefineError
Source§impl Error for RefineError
impl Error for RefineError
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 RefineError
impl PartialEq for RefineError
impl StructuralPartialEq for RefineError
Auto Trait Implementations§
impl Freeze for RefineError
impl RefUnwindSafe for RefineError
impl Send for RefineError
impl Sync for RefineError
impl Unpin for RefineError
impl UnsafeUnpin for RefineError
impl UnwindSafe for RefineError
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