#[non_exhaustive]pub enum SkeletonError {
LimitCountMismatch {
got: usize,
expected: usize,
},
InvalidLimit {
edge: EdgeId,
value: f32,
},
IncompatibleCollinearLimits {
left: EdgeId,
right: EdgeId,
},
EventBudgetExhausted {
budget: usize,
},
}Expand description
Why a skeleton could not be computed.
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.
LimitCountMismatch
The per-edge limit slice did not have one entry per input edge.
Fields
InvalidLimit
A per-edge limit was negative or NaN.
IncompatibleCollinearLimits
Two collinear neighbouring edges were given different distance limits.
When one stops and the other keeps going, the wavefront would have to tear open between two parallel lines at different offsets, and the vertex between them has nowhere to be. Give both edges the same limit, or separate them with a non-collinear edge.
EventBudgetExhausted
The simulation exceeded its event budget.
This is a guard against a non-terminating loop caused by degenerate input, and should not be reachable. Please report it as a bug, with the polygon that triggered it.
Trait Implementations§
Source§impl Clone for SkeletonError
impl Clone for SkeletonError
Source§fn clone(&self) -> SkeletonError
fn clone(&self) -> SkeletonError
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 SkeletonError
impl Debug for SkeletonError
Source§impl Display for SkeletonError
impl Display for SkeletonError
Source§impl Error for SkeletonError
Available on crate feature std only.
impl Error for SkeletonError
Available on crate feature
std only.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 SkeletonError
impl PartialEq for SkeletonError
impl StructuralPartialEq for SkeletonError
Auto Trait Implementations§
impl Freeze for SkeletonError
impl RefUnwindSafe for SkeletonError
impl Send for SkeletonError
impl Sync for SkeletonError
impl Unpin for SkeletonError
impl UnsafeUnpin for SkeletonError
impl UnwindSafe for SkeletonError
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