[][src]Struct map_model::Building

pub struct Building {
    pub id: BuildingID,
    pub polygon: Polygon,
    pub address: String,
    pub name: Option<String>,
    pub orig_id: OsmID,
    pub label_center: Pt2D,
    pub amenities: BTreeSet<(String, String)>,
    pub bldg_type: BuildingType,
    pub parking: OffstreetParking,
    pub sidewalk_pos: Position,
    pub driveway_geom: PolyLine,
}

Fields

id: BuildingIDpolygon: Polygonaddress: Stringname: Option<String>orig_id: OsmIDlabel_center: Pt2Damenities: BTreeSet<(String, String)>bldg_type: BuildingTypeparking: OffstreetParkingsidewalk_pos: Positiondriveway_geom: PolyLine

Implementations

impl Building[src]

pub fn sidewalk(&self) -> LaneID[src]

pub fn house_number(&self) -> Option<String>[src]

pub fn driving_connection(&self, map: &Map) -> Option<(Position, PolyLine)>[src]

pub fn biking_connection(&self, map: &Map) -> Option<(Position, Position)>[src]

pub fn num_parking_spots(&self) -> usize[src]

Trait Implementations

impl Debug for Building[src]

impl<'de> Deserialize<'de> for Building[src]

impl Serialize for Building[src]

Auto Trait Implementations

impl RefUnwindSafe for Building

impl Send for Building

impl Sync for Building

impl Unpin for Building

impl UnwindSafe for Building

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,