pub struct Polygon {
pub exterior: LineString,
pub holes: Vec<LineString>,
}Expand description
A polygon: one exterior ring plus zero or more interior rings (holes).
Ring orientation in this IR is OGC-standard: exterior counter-clockwise, interior clockwise. Drivers that read formats with a different convention (Esri Shapefile/GDB: exterior CW, hole CCW) re-orient at read time.
Fields§
§exterior: LineString§holes: Vec<LineString>Implementations§
Trait Implementations§
impl StructuralPartialEq for Polygon
Auto Trait Implementations§
impl Freeze for Polygon
impl RefUnwindSafe for Polygon
impl Send for Polygon
impl Sync for Polygon
impl Unpin for Polygon
impl UnsafeUnpin for Polygon
impl UnwindSafe for Polygon
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