#[repr(C)]
pub enum Shape2d {
Difference(Box<Difference2d>),
Sketch(Sketch),
}
Expand description
A 2-dimensional shape
Variants
Difference(Box<Difference2d>)
A difference between two shapes
Sketch(Sketch)
A sketch
Implementations
Trait Implementations
sourceimpl From<Difference2d> for Shape2d
impl From<Difference2d> for Shape2d
sourcefn from(shape: Difference2d) -> Self
fn from(shape: Difference2d) -> Self
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Difference for T where
T: Clone + Into<Shape2d>,
impl<T> Difference for T where
T: Clone + Into<Shape2d>,
sourcefn difference<Other>(&self, other: &Other) -> Difference2d where
Other: Clone + Into<Shape2d>,
fn difference<Other>(&self, other: &Other) -> Difference2d where
Other: Clone + Into<Shape2d>,
Create a difference between self
and other