pub enum LineOrientation {
Horizontal,
Vertical,
Diagonal,
}Expand description
Orientation of a line segment.
Variants§
Horizontal
Horizontal line (y1 == y2)
Vertical
Vertical line (x1 == x2)
Diagonal
Diagonal line (neither horizontal nor vertical)
Trait Implementations§
Source§impl Clone for LineOrientation
impl Clone for LineOrientation
Source§fn clone(&self) -> LineOrientation
fn clone(&self) -> LineOrientation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LineOrientation
Source§impl Debug for LineOrientation
impl Debug for LineOrientation
impl Eq for LineOrientation
Source§impl PartialEq for LineOrientation
impl PartialEq for LineOrientation
impl StructuralPartialEq for LineOrientation
Auto Trait Implementations§
impl Freeze for LineOrientation
impl RefUnwindSafe for LineOrientation
impl Send for LineOrientation
impl Sync for LineOrientation
impl Unpin for LineOrientation
impl UnsafeUnpin for LineOrientation
impl UnwindSafe for LineOrientation
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