[−][src]Struct map_model::Building
Fields
id: BuildingID
polygon: Polygon
levels: f64
address: String
name: Option<NamePerLanguage>
orig_id: OsmID
label_center: Pt2D
amenities: BTreeSet<(NamePerLanguage, String)>
bldg_type: BuildingType
parking: OffstreetParking
sidewalk_pos: Position
driveway_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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,