#[non_exhaustive]pub enum FaceSelectionError {
InvalidAxis,
InvalidHalfAngle,
InvalidDirection,
MeshNotSurfaceUsable(MeshHealth),
TriangleOutOfRange {
triangle: usize,
},
IndexOutOfRange {
triangle: usize,
},
NonFiniteNormal {
triangle: usize,
},
NonFinitePosition {
triangle: usize,
},
}Expand description
Why a selection or an extent was refused.
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.
InvalidAxis
The cone axis is not finite or has no direction.
InvalidHalfAngle
The half-angle is not finite or outside [0, pi].
InvalidDirection
The direction to measure along is not finite or has no direction.
MeshNotSurfaceUsable(MeshHealth)
The mesh is not surface-usable or has a degenerate triangle.
TriangleOutOfRange
A listed triangle does not exist.
IndexOutOfRange
A corner of a triangle does not address a position.
NonFiniteNormal
A triangle’s normal or area overflows. (A total of finite areas cannot:
a triangle’s area is below 1e154.)
NonFinitePosition
A listed triangle has a non-finite position.
Trait Implementations§
Source§impl Clone for FaceSelectionError
impl Clone for FaceSelectionError
Source§fn clone(&self) -> FaceSelectionError
fn clone(&self) -> FaceSelectionError
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 FaceSelectionError
impl Debug for FaceSelectionError
Source§impl Display for FaceSelectionError
impl Display for FaceSelectionError
impl Eq for FaceSelectionError
Source§impl Error for FaceSelectionError
impl Error for FaceSelectionError
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 FaceSelectionError
impl PartialEq for FaceSelectionError
impl StructuralPartialEq for FaceSelectionError
Auto Trait Implementations§
impl Freeze for FaceSelectionError
impl RefUnwindSafe for FaceSelectionError
impl Send for FaceSelectionError
impl Sync for FaceSelectionError
impl Unpin for FaceSelectionError
impl UnsafeUnpin for FaceSelectionError
impl UnwindSafe for FaceSelectionError
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