[][src]Enum arcs::algorithms::Closest

pub enum Closest {
    Infinite,
    One(Point),
    Many(Vec<Point>),
}

An enum containing the different possible solutions for ClosestPoint::closest_point().

Variants

Infinite

There are infinitely solutions.

One(Point)

There is a single closest Point.

Many(Vec<Point>)

There are multiple closest Points.

Methods

impl Closest[src]

pub fn is_infinite(&self) -> bool[src]

Are there infinitely many closest points?

pub fn points(&self) -> &[Point][src]

Get a slice of all the closest Points.

Note

This will be empty if there are infinitely many closest points.

Trait Implementations

impl Clone for Closest[src]

impl Debug for Closest[src]

impl FromIterator<Point2D<f64, DrawingSpace>> for Closest[src]

impl PartialEq<Closest> for Closest[src]

impl StructuralPartialEq for Closest[src]

Auto Trait Implementations

impl RefUnwindSafe for Closest

impl Send for Closest

impl Sync for Closest

impl Unpin for Closest

impl UnwindSafe for Closest

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<T> Event for T where
    T: Send + Sync + 'static, 

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

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

impl<T> Resource for T where
    T: Any + Send + Sync
[src]

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

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 
[src]

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.