[−][src]Enum arcs::algorithms::Closest
An enum containing the different possible solutions for
[ClosestPoint::closest_point()
].
Variants
There are infinitely solutions.
There is a single closest [Point2D
].
There are multiple closest [Point2D
]s.
Implementations
impl<Space> Closest<Space>
[src]
pub fn is_infinite(&self) -> bool
[src]
Are there infinitely many closest points?
pub fn points(&self) -> &[Point2D<f64, Space>]
[src]
Get a slice of all the closest [Point2D
]s.
Note
This will be empty if there are infinitely many closest points.
Trait Implementations
impl<Space> Clone for Closest<Space> where
Space: Clone,
[src]
Space: Clone,
impl<Space> Debug for Closest<Space> where
Space: Debug,
[src]
Space: Debug,
impl<Space> FromIterator<Point2D<f64, Space>> for Closest<Space>
[src]
impl<Space> PartialEq<Closest<Space>> for Closest<Space> where
Space: PartialEq<Space>,
[src]
Space: PartialEq<Space>,
impl<Space> StructuralPartialEq for Closest<Space>
[src]
Auto Trait Implementations
impl<Space> RefUnwindSafe for Closest<Space> where
Space: RefUnwindSafe,
Space: RefUnwindSafe,
impl<Space> Send for Closest<Space> where
Space: Send,
Space: Send,
impl<Space> Sync for Closest<Space> where
Space: Sync,
Space: Sync,
impl<Space> Unpin for Closest<Space> where
Space: Unpin,
Space: Unpin,
impl<Space> UnwindSafe for Closest<Space> where
Space: UnwindSafe,
Space: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,
fn get_type_id(&self) -> TypeId
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Event for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> RoundFrom<T> for T
[src]
fn round_from(x: T) -> T
[src]
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
[src]
U: RoundFrom<T>,
fn round_into(self) -> U
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,