[][src]Enum geo::Closest

pub enum Closest<F: GeoFloat> {
    Intersection(Point<F>),
    SinglePoint(Point<F>),
    Indeterminate,
}

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

impl<F: GeoFloat> Closest<F>[src]

pub fn best_of_two(&self, other: &Self, p: Point<F>) -> Self[src]

Compare two Closests relative to p and return a copy of the best one.

Trait Implementations

impl<F: Clone + GeoFloat> Clone for Closest<F>[src]

impl<F: Copy + GeoFloat> Copy for Closest<F>[src]

impl<F: Debug + GeoFloat> Debug for Closest<F>[src]

impl<F: PartialEq + GeoFloat> PartialEq<Closest<F>> for Closest<F>[src]

impl<F: GeoFloat> StructuralPartialEq for Closest<F>[src]

Auto Trait Implementations

impl<F> RefUnwindSafe for Closest<F> where
    F: RefUnwindSafe
[src]

impl<F> Send for Closest<F> where
    F: Send
[src]

impl<F> Sync for Closest<F> where
    F: Sync
[src]

impl<F> Unpin for Closest<F> where
    F: Unpin
[src]

impl<F> UnwindSafe for Closest<F> where
    F: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.