Trait Interval

Source
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,