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.