pub struct Area {
pub id: AreaID,
pub area_type: AreaType,
pub polygon: Polygon,
pub osm_tags: Tags,
pub osm_id: Option<OsmID>,
}
Expand description
Areas are just used for drawing.
Fields
id: AreaID
area_type: AreaType
polygon: Polygon
osm_id: Option<OsmID>
The importing process also automatically creates some areas, so they don’t come from OSM.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Area
impl<'de> Deserialize<'de> for Area
sourcefn 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 RefUnwindSafe for Area
impl Send for Area
impl Sync for Area
impl Unpin for Area
impl UnwindSafe for Area
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more