[−][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.
Indeterminate
There are two or more (possibly infinite or undefined) possible points.
Methods
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]
fn clone(&self) -> Closest<F>
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<F: Copy + Float> Copy for Closest<F>
[src]
impl<F: PartialEq + Float> PartialEq<Closest<F>> for Closest<F>
[src]
impl<F: Debug + Float> Debug for Closest<F>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,