Enum libreda_pnr::db::Orientation
pub enum Orientation {
ClockWise,
CounterClockWise,
Straight,
}Expand description
Relative orientation of two geometrical objects such as vectors.
Variants§
ClockWise
Clock-wise orientation.
CounterClockWise
Counter-clock-wise orientation.
Straight
Neither clock-wise nor counter-clock-wise.
Implementations§
§impl Orientation
impl Orientation
pub fn is_clock_wise(self) -> bool
pub fn is_clock_wise(self) -> bool
Test if the orientation is equal to ClockWise.
pub fn is_counter_clock_wise(self) -> bool
pub fn is_counter_clock_wise(self) -> bool
Test if the orientation is equal to CounterClockWise.
pub fn is_straight(self) -> bool
pub fn is_straight(self) -> bool
Test if the orientation is equal to Straight.
Trait Implementations§
§impl Clone for Orientation
impl Clone for Orientation
§fn clone(&self) -> Orientation
fn clone(&self) -> Orientation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for Orientation
impl Debug for Orientation
§impl Hash for Orientation
impl Hash for Orientation
§impl PartialEq<Orientation> for Orientation
impl PartialEq<Orientation> for Orientation
§fn eq(&self, other: &Orientation) -> bool
fn eq(&self, other: &Orientation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.