#[non_exhaustive]pub enum ProjectionError {
InvalidPlane,
NonFinitePosition,
IndexOutOfRange,
Planar(OverlayError),
}Expand description
Why a projection could not be produced.
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.
InvalidPlane
The projection plane basis was not orthonormal or not finite.
No longer produced: Plane validates on construction, so an invalid
basis cannot reach a projection. Retained because the enum is public
and removing a variant is a breaking change.
NonFinitePosition
A mesh position was not finite.
IndexOutOfRange
A triangle referenced a position index the mesh does not have.
Planar(OverlayError)
The planar stage rejected the projected geometry.
Trait Implementations§
Source§impl Clone for ProjectionError
impl Clone for ProjectionError
Source§fn clone(&self) -> ProjectionError
fn clone(&self) -> ProjectionError
Returns a copy of the value. Read more
1.0.0 · 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 ProjectionError
impl Debug for ProjectionError
Source§impl From<OverlayError> for ProjectionError
impl From<OverlayError> for ProjectionError
Source§fn from(error: OverlayError) -> Self
fn from(error: OverlayError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProjectionError
impl PartialEq for ProjectionError
impl Eq for ProjectionError
impl StructuralPartialEq for ProjectionError
Auto Trait Implementations§
impl Freeze for ProjectionError
impl RefUnwindSafe for ProjectionError
impl Send for ProjectionError
impl Sync for ProjectionError
impl Unpin for ProjectionError
impl UnwindSafe for ProjectionError
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