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§

source

fn get(&self, d: Direction1D) -> Coord

Get the low or high end.

Provided Methods§

source

fn start(&self) -> Coord

Get the low end.

source

fn end(&self) -> Coord

Get the high end.

Implementors§

source§

impl<C> Interval<C> for Interval<C>where C: CoordinateType,