Trait Object

Source
pub trait Object {
    type Point: Point;

    // Required method
    fn position(&self) -> &Self::Point;
}
Expand description

Defines the objects which can be organized in a KdTree by positioning them in the vector space defined via the Point trait

Required Associated Types§

Source

type Point: Point

The Point implementation used to represent the position of these objects

Required Methods§

Source

fn position(&self) -> &Self::Point

Return the position associated with this object

Note that calling this method is assumed to be cheap, returning a reference to a point stored in the interior of the object.

Implementors§