[][src]Struct acap::Neighbor

pub struct Neighbor<V, D> {
    pub item: V,
    pub distance: D,
}

A nearest neighbor.

Fields

item: V

The neighbor itself.

distance: D

The distance from the target to this neighbor.

Implementations

impl<V, D> Neighbor<V, D>[src]

pub fn new(item: V, distance: D) -> Self[src]

Create a new Neighbor.

Trait Implementations

impl<V: Clone, D: Clone> Clone for Neighbor<V, D>[src]

impl<V: Copy, D: Copy> Copy for Neighbor<V, D>[src]

impl<V: Debug, D: Debug> Debug for Neighbor<V, D>[src]

impl<V1, D1, V2, D2> PartialEq<Neighbor<V2, D2>> for Neighbor<V1, D1> where
    V1: PartialEq<V2>,
    D1: PartialEq<D2>, 
[src]

Auto Trait Implementations

impl<V, D> RefUnwindSafe for Neighbor<V, D> where
    D: RefUnwindSafe,
    V: RefUnwindSafe

impl<V, D> Send for Neighbor<V, D> where
    D: Send,
    V: Send

impl<V, D> Sync for Neighbor<V, D> where
    D: Sync,
    V: Sync

impl<V, D> Unpin for Neighbor<V, D> where
    D: Unpin,
    V: Unpin

impl<V, D> UnwindSafe for Neighbor<V, D> where
    D: UnwindSafe,
    V: UnwindSafe

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> 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.