#[repr(C)]
pub enum Shape2d {
Difference(Box<Difference2d>),
Sketch(Sketch),
}
Expand description
A 2-dimensional shape
Variants§
Implementations§
Trait Implementations§
source§impl From<Difference2d> for Shape2d
impl From<Difference2d> for Shape2d
source§fn from(shape: Difference2d) -> Self
fn from(shape: Difference2d) -> Self
Converts to this type from the input type.
source§impl PartialEq<Shape2d> for Shape2d
impl PartialEq<Shape2d> for Shape2d
impl StructuralPartialEq for Shape2d
Auto Trait Implementations§
impl RefUnwindSafe for Shape2d
impl Send for Shape2d
impl Sync for Shape2d
impl Unpin for Shape2d
impl UnwindSafe for Shape2d
Blanket Implementations§
source§impl<T> Difference for Twhere
T: Clone + Into<Shape2d>,
impl<T> Difference for Twhere T: Clone + Into<Shape2d>,
source§fn difference<Other>(&self, other: &Other) -> Difference2dwhere
Other: Clone + Into<Shape2d>,
fn difference<Other>(&self, other: &Other) -> Difference2dwhere Other: Clone + Into<Shape2d>,
Create a difference between
self
and other