pub trait Interval<Coord>where
Coord: Copy,{
// Required method
fn get(&self, d: Direction1D) -> Coord;
// Provided methods
fn start(&self) -> Coord { ... }
fn end(&self) -> Coord { ... }
}Expand description
Describe an interval of coordinates by a start value and an end value.
Required Methods§
Sourcefn get(&self, d: Direction1D) -> Coord
fn get(&self, d: Direction1D) -> Coord
Get the low or high end.