1 2 3 4 5 6 7 8 9 10
#[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum Orientation { Clockwise, Collinear, Counterclockwise, } pub trait Oriented { fn to_orientation(self) -> Orientation; }