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§
source§impl<F: PartialEq + GeoFloat> PartialEq for Closest<F>
impl<F: PartialEq + GeoFloat> PartialEq for Closest<F>
impl<F: Copy + GeoFloat> Copy for Closest<F>
impl<F: GeoFloat> StructuralPartialEq for Closest<F>
Auto Trait Implementations§
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