pub enum AreaShape {
Disk {
radius: i64,
},
Rect {
width: i64,
height: i64,
},
Capsule {
length: i64,
width: i64,
},
RoundedRect {
width: i64,
height: i64,
radius: i64,
},
ChamferedRect {
width: i64,
height: i64,
chamfer: i64,
corners: ChamferCorners,
},
Trapezoid {
width: i64,
height: i64,
delta_x: i64,
delta_y: i64,
},
Region {
outer: Ring2D,
holes: Vec<Ring2D>,
},
}Expand description
Analytic 2D area shape (in local coordinates, +Y up, whole nm).
Variants§
Disk
Rect
Capsule
Capsule (obround) with length >= width along local X.
RoundedRect
ChamferedRect
Trapezoid
Region
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AreaShape
impl<'de> Deserialize<'de> for AreaShape
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for AreaShape
Auto Trait Implementations§
impl Freeze for AreaShape
impl RefUnwindSafe for AreaShape
impl Send for AreaShape
impl Sync for AreaShape
impl Unpin for AreaShape
impl UnsafeUnpin for AreaShape
impl UnwindSafe for AreaShape
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