pub struct Polygon2D {
pub vertices: Vec<Position2D>,
pub closed: bool,
}Expand description
Polygon for 2D regions (zones, areas).
Fields§
§vertices: Vec<Position2D>List of vertices
closed: boolWhether the polygon is closed
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Polygon2D
impl<'de> Deserialize<'de> for Polygon2D
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
Auto Trait Implementations§
impl Freeze for Polygon2D
impl RefUnwindSafe for Polygon2D
impl Send for Polygon2D
impl Sync for Polygon2D
impl Unpin for Polygon2D
impl UnwindSafe for Polygon2D
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