#[non_exhaustive]pub enum Edge {
Line {
a: [f64; 2],
b: [f64; 2],
},
Arc {
center: [f64; 2],
radius: f64,
start: f64,
end: f64,
ccw: bool,
},
Ellipse {
center: [f64; 2],
major: [f64; 2],
ratio: f64,
start: f64,
end: f64,
ccw: bool,
},
Spline {
degree: u32,
rational: bool,
periodic: bool,
knots: Vec<f64>,
control: Vec<[f64; 2]>,
weights: Vec<f64>,
fit: Vec<[f64; 2]>,
},
Poly {
vertices: Vec<[f64; 3]>,
closed: bool,
},
}Expand description
an edge of a hatch’s boundary path (angles in degrees, as the file has them)
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Line
Arc
Ellipse
major: the end of the major axis relative to the centre; ratio: minor over major
Spline
Fields
Poly
a polyline path: its vertices (x, y, bulge), closed
Trait Implementations§
impl StructuralPartialEq for Edge
Auto Trait Implementations§
impl Forget for Edge
impl Freeze for Edgewhere
*const u8 is !null: Freeze,
PhantomData<f64>: Freeze,
PhantomData<[f64; 2]>: Freeze,
PhantomData<[f64; 3]>: Freeze,
impl Move for Edge
impl RefUnwindSafe for Edge
impl Send for Edgewhere
RawVecInner: Send,
impl Sync for Edgewhere
RawVecInner: Sync,
impl Unpin for Edge
impl UnsafeUnpin for Edgewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<f64>: UnsafeUnpin,
PhantomData<[f64; 2]>: UnsafeUnpin,
PhantomData<[f64; 3]>: UnsafeUnpin,
impl UnwindSafe for Edgewhere
RawVecInner: UnwindSafe,
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