pub struct RegionPolygon {
pub outer: Vec<GeoPoint>,
pub holes: Vec<Vec<GeoPoint>>,
}Expand description
One outline of a region: an outer ring, and the holes in it.
A region is made of one or more outlines: a country with an enclave, or an archipelago, has more than one.
Fields§
§outer: Vec<GeoPoint>The outer ring of the outline.
holes: Vec<Vec<GeoPoint>>The holes of the outline — the lakes and the enclaves that are not part of the region.
Trait Implementations§
Source§impl Clone for RegionPolygon
impl Clone for RegionPolygon
Source§impl Debug for RegionPolygon
impl Debug for RegionPolygon
Source§impl Default for RegionPolygon
impl Default for RegionPolygon
Source§impl PartialEq for RegionPolygon
impl PartialEq for RegionPolygon
impl StructuralPartialEq for RegionPolygon
Auto Trait Implementations§
impl Freeze for RegionPolygon
impl RefUnwindSafe for RegionPolygon
impl Send for RegionPolygon
impl Sync for RegionPolygon
impl Unpin for RegionPolygon
impl UnsafeUnpin for RegionPolygon
impl UnwindSafe for RegionPolygon
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