Trait iron_shapes::concepts::Interval
source · [−]pub trait Interval<Coord> where
Coord: Copy, {
fn get(&self, d: Direction1D) -> Coord;
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
fn get(&self, d: Direction1D) -> Coord
fn get(&self, d: Direction1D) -> Coord
Get the low or high end.