pub enum Closest<F: GeoFloat> {
Intersection(Point<F>),
SinglePoint(Point<F>),
Indeterminate,
}Expand description
The result of trying to find the closest spot on an object to a point.
Variants§
Intersection(Point<F>)
The point actually intersects with the object.
SinglePoint(Point<F>)
There is exactly one place on this object which is closest to the point.
Indeterminate
There are two or more (possibly infinite or undefined) possible points.
Implementations§
Trait Implementations§
impl<F: Copy + GeoFloat> Copy for Closest<F>
impl<F: GeoFloat> StructuralPartialEq for Closest<F>
Auto Trait Implementations§
impl<F> Freeze for Closest<F>where
F: Freeze,
impl<F> RefUnwindSafe for Closest<F>where
F: RefUnwindSafe,
impl<F> Send for Closest<F>where
F: Send,
impl<F> Sync for Closest<F>where
F: Sync,
impl<F> Unpin for Closest<F>where
F: Unpin,
impl<F> UnwindSafe for Closest<F>where
F: UnwindSafe,
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