Struct vec_vp_tree::Neighbor [] [src]

pub struct Neighbor<'t, T: 't> {
    pub item: &'t T,
    pub dist: u64,
}

Wrapper of an item and a distance, returned by Neighbors.

Fields

The item that this entry concerns.

The distance between item and the origin passed to VpTree::k_nearest().

Trait Implementations

impl<'t, T: Debug + 't> Debug for Neighbor<'t, T>
[src]

Formats the value using the given formatter.

impl<'t, T: Clone + 't> Clone for Neighbor<'t, T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'t, T: 't> PartialOrd for Neighbor<'t, T>
[src]

Returns the comparison of the distances only.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<'t, T: 't> Ord for Neighbor<'t, T>
[src]

Returns the comparison of the distances only.

This method returns an Ordering between self and other. Read more

impl<'t, T: 't> PartialEq for Neighbor<'t, T>
[src]

Returns the equality of the distances only.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'t, T: 't> Eq for Neighbor<'t, T>
[src]

Returns the equality of the distances only.