pub enum RectangleSide {
AlongFirst,
AlongSecond,
AgainstFirst,
AgainstSecond,
}Expand description
One side of a PlanRectangle, by the axis it faces along.
Variants§
AlongFirst
Facing along the first axis.
AlongSecond
Facing along the second axis.
AgainstFirst
Facing against the first axis.
AgainstSecond
Facing against the second axis.
Implementations§
Source§impl RectangleSide
impl RectangleSide
Sourcepub fn outward(self, rectangle: &PlanRectangle) -> [f64; 2]
pub fn outward(self, rectangle: &PlanRectangle) -> [f64; 2]
The side’s outward unit direction in plan.
Trait Implementations§
Source§impl Clone for RectangleSide
impl Clone for RectangleSide
impl Copy for RectangleSide
Source§impl Debug for RectangleSide
impl Debug for RectangleSide
impl Eq for RectangleSide
Source§impl Hash for RectangleSide
impl Hash for RectangleSide
Source§impl Ord for RectangleSide
impl Ord for RectangleSide
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RectangleSide
impl PartialEq for RectangleSide
Source§impl PartialOrd for RectangleSide
impl PartialOrd for RectangleSide
impl StructuralPartialEq for RectangleSide
Auto Trait Implementations§
impl Freeze for RectangleSide
impl RefUnwindSafe for RectangleSide
impl Send for RectangleSide
impl Sync for RectangleSide
impl Unpin for RectangleSide
impl UnsafeUnpin for RectangleSide
impl UnwindSafe for RectangleSide
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