Trait iron_shapes::concepts::Segment
source · pub trait Segment<C: CoordinateConcept> {
type Point: PointConcept<C>;
// Required method
fn get_point(&self, dir: Direction1D) -> Self::Point;
// Provided methods
fn start(&self) -> Self::Point { ... }
fn end(&self) -> Self::Point { ... }
}Expand description
A polygon edge.
Required Associated Types§
sourcetype Point: PointConcept<C>
type Point: PointConcept<C>
Type used to represent the end points of the segment.
Required Methods§
sourcefn get_point(&self, dir: Direction1D) -> Self::Point
fn get_point(&self, dir: Direction1D) -> Self::Point
Get the start (LOW) or end (HIGH) point of the segment.