Enum MeshProximityError
#[non_exhaustive]pub enum MeshProximityError {
EmptyMesh,
IndexOutOfRange,
InvalidThreshold,
Primitive(ProximityError),
}Expand description
Why a mesh proximity query could not be answered.
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.
EmptyMesh
A mesh had no usable triangles.
Distance to nothing is undefined; returning infinity would let a caller read an empty mesh as “very far away” rather than “no input”.
IndexOutOfRange
A triangle referenced a position the mesh does not have.
InvalidThreshold
The threshold was negative or not finite.
Primitive(ProximityError)
A primitive query rejected its input.
Trait Implementations§
§impl Clone for MeshProximityError
impl Clone for MeshProximityError
§fn clone(&self) -> MeshProximityError
fn clone(&self) -> MeshProximityError
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 more§impl Debug for MeshProximityError
impl Debug for MeshProximityError
§impl From<ProximityError> for MeshProximityError
impl From<ProximityError> for MeshProximityError
§fn from(error: ProximityError) -> MeshProximityError
fn from(error: ProximityError) -> MeshProximityError
Converts to this type from the input type.
§impl PartialEq for MeshProximityError
impl PartialEq for MeshProximityError
impl Copy for MeshProximityError
impl Eq for MeshProximityError
impl StructuralPartialEq for MeshProximityError
Auto Trait Implementations§
impl Freeze for MeshProximityError
impl RefUnwindSafe for MeshProximityError
impl Send for MeshProximityError
impl Sync for MeshProximityError
impl Unpin for MeshProximityError
impl UnwindSafe for MeshProximityError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more