pub enum Geometry {
Polygon {
segments: Vec<PolygonSegment>,
},
Circle {
centerpoint: Coord,
radius: f32,
},
}
Variants§
Polygon
Fields
§
segments: Vec<PolygonSegment>
Segments describing the polygon.
The polygon may be open or closed.
Circle
Trait Implementations§
impl StructuralPartialEq for Geometry
Auto Trait Implementations§
impl Freeze for Geometry
impl RefUnwindSafe for Geometry
impl Send for Geometry
impl Sync for Geometry
impl Unpin for Geometry
impl UnwindSafe for Geometry
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