[−][src]Enum geo::Closest
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.
There are two or more (possibly infinite or undefined) possible points.
Implementations
impl<F: Float> Closest<F>
[src]
pub fn best_of_two(&self, other: &Self, p: Point<F>) -> Self
[src]
Compare two Closest
s relative to p
and return a copy of the best
one.
Trait Implementations
impl<F: Clone + Float> Clone for Closest<F>
[src]
impl<F: Copy + Float> Copy for Closest<F>
[src]
impl<F: Debug + Float> Debug for Closest<F>
[src]
impl<F: PartialEq + Float> PartialEq<Closest<F>> for Closest<F>
[src]
impl<F: Float> StructuralPartialEq for Closest<F>
[src]
Auto Trait Implementations
impl<F> RefUnwindSafe for Closest<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> Send for Closest<F> where
F: Send,
F: Send,
impl<F> Sync for Closest<F> where
F: Sync,
F: Sync,
impl<F> Unpin for Closest<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for Closest<F> where
F: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,