pub enum RelativeDirection {
Left = 1,
Collinear = 0,
Right = -1,
}Expand description
The direction a point lies relative to a line. Returned by
Line::relative_direction_of.
Variants§
Left = 1
The point lies left relative to the line.
Collinear = 0
The point is collinear with the line.
Right = -1
The point lies right relative to the line.
Trait Implementations§
Source§impl Clone for RelativeDirection
impl Clone for RelativeDirection
Source§fn clone(&self) -> RelativeDirection
fn clone(&self) -> RelativeDirection
Returns a duplicate 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 moreSource§impl Debug for RelativeDirection
impl Debug for RelativeDirection
Source§impl Hash for RelativeDirection
impl Hash for RelativeDirection
Source§impl Ord for RelativeDirection
impl Ord for RelativeDirection
Source§fn cmp(&self, other: &RelativeDirection) -> Ordering
fn cmp(&self, other: &RelativeDirection) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RelativeDirection
impl PartialEq for RelativeDirection
Source§impl PartialOrd for RelativeDirection
impl PartialOrd for RelativeDirection
impl Copy for RelativeDirection
impl Eq for RelativeDirection
impl StructuralPartialEq for RelativeDirection
Auto Trait Implementations§
impl Freeze for RelativeDirection
impl RefUnwindSafe for RelativeDirection
impl Send for RelativeDirection
impl Sync for RelativeDirection
impl Unpin for RelativeDirection
impl UnsafeUnpin for RelativeDirection
impl UnwindSafe for RelativeDirection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more