#[non_exhaustive]pub enum FarthestError {
Route(RouteError),
InvalidTolerance,
CrossingObstacles,
Triangulation,
Unreachable {
triangle: [DVec2; 3],
},
Empty,
MismatchedMaps,
}Expand description
Why no bracket was 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.
Route(RouteError)
The subregion is malformed, or a predicate was undecidable.
InvalidTolerance
The tolerance is negative or not finite.
CrossingObstacles
Two walls or barriers cross other than at a shared vertex. The free space is triangulated with them as constraints, and crossings would need rounded vertices; not supported yet.
Triangulation
The free space could not be triangulated, or a triangle of it is too thin to hold a point strictly inside.
Unreachable
Part of the subregion lies in free space that no target reaches, so its farthest distance is infinite. The triangle lies in the free space and meets the subregion; no target reaches any of it.
Empty
The subregion does not meet the free space.
MismatchedMaps
Two distance maps cover different free space: their regions or barriers differ.
Trait Implementations§
Source§impl Clone for FarthestError
impl Clone for FarthestError
Source§fn clone(&self) -> FarthestError
fn clone(&self) -> FarthestError
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 FarthestError
impl Debug for FarthestError
Source§impl From<RouteError> for FarthestError
impl From<RouteError> for FarthestError
Source§fn from(error: RouteError) -> FarthestError
fn from(error: RouteError) -> FarthestError
Converts to this type from the input type.
Source§impl PartialEq for FarthestError
impl PartialEq for FarthestError
impl Copy for FarthestError
impl StructuralPartialEq for FarthestError
Auto Trait Implementations§
impl Freeze for FarthestError
impl RefUnwindSafe for FarthestError
impl Send for FarthestError
impl Sync for FarthestError
impl Unpin for FarthestError
impl UnwindSafe for FarthestError
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