#[non_exhaustive]pub enum FreeFacesError {
InvalidGap,
InvalidObstacle {
polygon: usize,
reason: OverlayError,
},
InvalidBarrier {
barrier: usize,
reason: BarrierDefect,
},
NonFinitePoint,
BudgetExceeded {
resource: &'static str,
},
Cancelled,
NotCertified(String),
}Expand description
Why no free faces were built.
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.
InvalidGap
The closing width is not finite, or negative.
InvalidObstacle
An obstacle ring is invalid, or lies on one line, or the rings of one obstacle are not apart and nested.
Fields
§
polygon: usizeIndex into FreeSpaceInput::obstacles.
§
reason: OverlayErrorThe first defect found.
InvalidBarrier
A barrier is invalid.
NonFinitePoint
A point to locate has a non-finite coordinate.
BudgetExceeded
A resource limit was exceeded: "memory" or the name of a count.
Cancelled
The execution options’ token was cancelled.
NotCertified(String)
An exact step could not certify its result; the message names it.
Trait Implementations§
Source§impl Clone for FreeFacesError
impl Clone for FreeFacesError
Source§fn clone(&self) -> FreeFacesError
fn clone(&self) -> FreeFacesError
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 FreeFacesError
impl Debug for FreeFacesError
Source§impl Display for FreeFacesError
impl Display for FreeFacesError
Source§impl Error for FreeFacesError
impl Error for FreeFacesError
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 From<GeomError> for FreeFacesError
impl From<GeomError> for FreeFacesError
Source§impl PartialEq for FreeFacesError
impl PartialEq for FreeFacesError
impl StructuralPartialEq for FreeFacesError
Auto Trait Implementations§
impl Freeze for FreeFacesError
impl RefUnwindSafe for FreeFacesError
impl Send for FreeFacesError
impl Sync for FreeFacesError
impl Unpin for FreeFacesError
impl UnsafeUnpin for FreeFacesError
impl UnwindSafe for FreeFacesError
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