Enum libreda_db::prelude::Orientation
source · [−]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
sourceimpl Orientation
impl Orientation
sourcepub fn is_clock_wise(self) -> bool
pub fn is_clock_wise(self) -> bool
Test if the orientation is equal to ClockWise
.
sourcepub fn is_counter_clock_wise(self) -> bool
pub fn is_counter_clock_wise(self) -> bool
Test if the orientation is equal to CounterClockWise
.
sourcepub fn is_straight(self) -> bool
pub fn is_straight(self) -> bool
Test if the orientation is equal to Straight
.
Trait Implementations
sourceimpl Clone for Orientation
impl Clone for Orientation
sourcefn clone(&self) -> Orientation
fn clone(&self) -> Orientation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Orientation
impl Debug for Orientation
sourceimpl Hash for Orientation
impl Hash for Orientation
sourceimpl PartialEq<Orientation> for Orientation
impl PartialEq<Orientation> for Orientation
impl Copy for Orientation
impl StructuralPartialEq for Orientation
Auto Trait Implementations
impl RefUnwindSafe for Orientation
impl Send for Orientation
impl Sync for Orientation
impl Unpin for Orientation
impl UnwindSafe for Orientation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more