Trait cogset::Points [-] [+] [src]

pub trait Points {
    type Point;
}

A data structure that contains points of some sort.

Associated Types

type Point

The representation of a point.

It is expected that this should be stable for the given instance of a Points, but doesn't need to be stable across instances, e.g. if some hypothetical structure Foo stores points of type struct Bar(f64, f64) and two different Foos store the point Bar(0.0, 1.0), there's no requirement for the Point representing those Bars to be identical. In particular, this allows one to use an index into a vector of points stored inside the Self type.

Implementors