mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-28 08:53:26 +03:00
55 lines
93 KiB
HTML
55 lines
93 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `ParkingSim` trait in crate `sim`."><meta name="keywords" content="rust, rustlang, rust-lang, ParkingSim"><title>sim::mechanics::parking::ParkingSim - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../sim/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Trait ParkingSim</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.add_parked_car">add_parked_car</a><a href="#tymethod.all_parked_car_positions">all_parked_car_positions</a><a href="#tymethod.bldg_to_parked_cars">bldg_to_parked_cars</a><a href="#tymethod.canonical_pt">canonical_pt</a><a href="#tymethod.collect_events">collect_events</a><a href="#tymethod.get_all_draw_cars">get_all_draw_cars</a><a href="#tymethod.get_all_free_spots">get_all_free_spots</a><a href="#tymethod.get_all_parking_spots">get_all_parking_spots</a><a href="#tymethod.get_car_at_spot">get_car_at_spot</a><a href="#tymethod.get_draw_car">get_draw_car</a><a href="#tymethod.get_draw_cars">get_draw_cars</a><a href="#tymethod.get_draw_cars_in_lots">get_draw_cars_in_lots</a><a href="#tymethod.get_free_lot_spots">get_free_lot_spots</a><a href="#tymethod.get_free_offstreet_spots">get_free_offstreet_spots</a><a href="#tymethod.get_free_onstreet_spots">get_free_onstreet_spots</a><a href="#tymethod.get_owner_of_car">get_owner_of_car</a><a href="#tymethod.handle_live_edits">handle_live_edits</a><a href="#tymethod.is_free">is_free</a><a href="#tymethod.lookup_parked_car">lookup_parked_car</a><a href="#tymethod.path_to_free_parking_spot">path_to_free_parking_spot</a><a href="#tymethod.remove_parked_car">remove_parked_car</a><a href="#tymethod.reserve_spot">reserve_spot</a><a href="#tymethod.spot_to_driving_pos">spot_to_driving_pos</a><a href="#tymethod.spot_to_sidewalk_pos">spot_to_sidewalk_pos</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='../../index.html'>sim</a>::<wbr><a href='../index.html'>mechanics</a>::<wbr><a href='index.html'>parking</a></p><script>window.sidebarCurrent = {name: 'ParkingSim', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#23-72' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='../../index.html'>sim</a>::<wbr><a href='../index.html'>mechanics</a>::<wbr><a href='index.html'>parking</a>::<wbr><a class="trait" href=''>ParkingSim</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait ParkingSim {
|
||
fn <a href='#tymethod.handle_live_edits' class='fnname'>handle_live_edits</a>(<br> &mut self, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> timer: &mut <a class="struct" href="../../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br> ) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.get_free_onstreet_spots' class='fnname'>get_free_onstreet_spots</a>(&self, l: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.get_free_offstreet_spots' class='fnname'>get_free_offstreet_spots</a>(&self, b: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.get_free_lot_spots' class='fnname'>get_free_lot_spots</a>(&self, pl: <a class="struct" href="../../../map_model/objects/parking_lot/struct.ParkingLotID.html" title="struct map_model::objects::parking_lot::ParkingLotID">ParkingLotID</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.reserve_spot' class='fnname'>reserve_spot</a>(&mut self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, car: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>);
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.remove_parked_car' class='fnname'>remove_parked_car</a>(&mut self, p: <a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>);
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.add_parked_car' class='fnname'>add_parked_car</a>(&mut self, p: <a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>);
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.get_draw_cars' class='fnname'>get_draw_cars</a>(&self, id: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.get_draw_cars_in_lots' class='fnname'>get_draw_cars_in_lots</a>(&self, id: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.get_draw_car' class='fnname'>get_draw_car</a>(&self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.canonical_pt' class='fnname'>canonical_pt</a>(&self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.get_all_draw_cars' class='fnname'>get_all_draw_cars</a>(&self, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.is_free' class='fnname'>is_free</a>(&self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.get_car_at_spot' class='fnname'>get_car_at_spot</a>(&self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.get_all_free_spots' class='fnname'>get_all_free_spots</a>(<br> &self, <br> driving_pos: <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a>, <br> vehicle: &<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br> target: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br> ) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.spot_to_driving_pos' class='fnname'>spot_to_driving_pos</a>(<br> &self, <br> spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <br> vehicle: &<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br> ) -> <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.spot_to_sidewalk_pos' class='fnname'>spot_to_sidewalk_pos</a>(&self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.get_owner_of_car' class='fnname'>get_owner_of_car</a>(&self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../sim/struct.PersonID.html" title="struct sim::PersonID">PersonID</a>>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.lookup_parked_car' class='fnname'>lookup_parked_car</a>(&self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.get_all_parking_spots' class='fnname'>get_all_parking_spots</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.path_to_free_parking_spot' class='fnname'>path_to_free_parking_spot</a>(<br> &self, <br> start: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, <br> vehicle: &<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br> target: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br> ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../map_model/pathfind/enum.PathStep.html" title="enum map_model::pathfind::PathStep">PathStep</a>>, <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.collect_events' class='fnname'>collect_events</a>(&mut self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/events/enum.Event.html" title="enum sim::events::Event">Event</a>>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.all_parked_car_positions' class='fnname'>all_parked_car_positions</a>(&self, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a>, <a class="struct" href="../../../sim/struct.PersonID.html" title="struct sim::PersonID">PersonID</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.bldg_to_parked_cars' class='fnname'>bldg_to_parked_cars</a>(&self, b: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>>;
|
||
}</pre></div><div class='docblock'><p>Manages the state of parked cars. There are two implementations:</p>
|
||
<ul>
|
||
<li>NormalParkingSimState allows only one vehicle per ParkingSpot defined in the map</li>
|
||
<li>InfiniteParkingSimState pretends every building has infinite capacity, and onstreet parking is
|
||
ignored</li>
|
||
</ul>
|
||
</div><h2 id='required-methods' class='small-section-header'>Required methods<a href='#required-methods' class='anchor'></a></h2><div class='methods'><h3 id='tymethod.handle_live_edits' class='method'><code>fn <a href='#tymethod.handle_live_edits' class='fnname'>handle_live_edits</a>(<br> &mut self, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> timer: &mut <a class="struct" href="../../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></h3><div class='docblock'><p>Returns any cars that got very abruptly evicted from existence, and also cars actively
|
||
moving into a deleted spot.</p>
|
||
</div><h3 id='tymethod.get_free_onstreet_spots' class='method'><code>fn <a href='#tymethod.get_free_onstreet_spots' class='fnname'>get_free_onstreet_spots</a>(&self, l: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>></code></h3><h3 id='tymethod.get_free_offstreet_spots' class='method'><code>fn <a href='#tymethod.get_free_offstreet_spots' class='fnname'>get_free_offstreet_spots</a>(&self, b: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>></code></h3><h3 id='tymethod.get_free_lot_spots' class='method'><code>fn <a href='#tymethod.get_free_lot_spots' class='fnname'>get_free_lot_spots</a>(&self, pl: <a class="struct" href="../../../map_model/objects/parking_lot/struct.ParkingLotID.html" title="struct map_model::objects::parking_lot::ParkingLotID">ParkingLotID</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>></code></h3><h3 id='tymethod.reserve_spot' class='method'><code>fn <a href='#tymethod.reserve_spot' class='fnname'>reserve_spot</a>(&mut self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, car: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>)</code></h3><h3 id='tymethod.remove_parked_car' class='method'><code>fn <a href='#tymethod.remove_parked_car' class='fnname'>remove_parked_car</a>(&mut self, p: <a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>)</code></h3><h3 id='tymethod.add_parked_car' class='method'><code>fn <a href='#tymethod.add_parked_car' class='fnname'>add_parked_car</a>(&mut self, p: <a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>)</code></h3><h3 id='tymethod.get_draw_cars' class='method'><code>fn <a href='#tymethod.get_draw_cars' class='fnname'>get_draw_cars</a>(&self, id: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>></code></h3><h3 id='tymethod.get_draw_cars_in_lots' class='method'><code>fn <a href='#tymethod.get_draw_cars_in_lots' class='fnname'>get_draw_cars_in_lots</a>(&self, id: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>></code></h3><h3 id='tymethod.get_draw_car' class='method'><code>fn <a href='#tymethod.get_draw_car' class='fnname'>get_draw_car</a>(&self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>></code></h3><h3 id='tymethod.canonical_pt' class='method'><code>fn <a href='#tymethod.canonical_pt' class='fnname'>canonical_pt</a>(&self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>></code></h3><div class='docblock'><p>There's no DrawCarInput for cars parked offstreet, so we need this.</p>
|
||
</div><h3 id='tymethod.get_all_draw_cars' class='method'><code>fn <a href='#tymethod.get_all_draw_cars' class='fnname'>get_all_draw_cars</a>(&self, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>></code></h3><h3 id='tymethod.is_free' class='method'><code>fn <a href='#tymethod.is_free' class='fnname'>is_free</a>(&self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></h3><h3 id='tymethod.get_car_at_spot' class='method'><code>fn <a href='#tymethod.get_car_at_spot' class='fnname'>get_car_at_spot</a>(&self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>></code></h3><h3 id='tymethod.get_all_free_spots' class='method'><code>fn <a href='#tymethod.get_all_free_spots' class='fnname'>get_all_free_spots</a>(<br> &self, <br> driving_pos: <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a>, <br> vehicle: &<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br> target: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code></h3><div class='docblock'><p>The vehicle's front is currently at the given driving_pos. Returns all valid spots and their
|
||
driving position.</p>
|
||
</div><h3 id='tymethod.spot_to_driving_pos' class='method'><code>fn <a href='#tymethod.spot_to_driving_pos' class='fnname'>spot_to_driving_pos</a>(<br> &self, <br> spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <br> vehicle: &<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -> <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a></code></h3><h3 id='tymethod.spot_to_sidewalk_pos' class='method'><code>fn <a href='#tymethod.spot_to_sidewalk_pos' class='fnname'>spot_to_sidewalk_pos</a>(&self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a></code></h3><h3 id='tymethod.get_owner_of_car' class='method'><code>fn <a href='#tymethod.get_owner_of_car' class='fnname'>get_owner_of_car</a>(&self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../sim/struct.PersonID.html" title="struct sim::PersonID">PersonID</a>></code></h3><h3 id='tymethod.lookup_parked_car' class='method'><code>fn <a href='#tymethod.lookup_parked_car' class='fnname'>lookup_parked_car</a>(&self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>></code></h3><h3 id='tymethod.get_all_parking_spots' class='method'><code>fn <a href='#tymethod.get_all_parking_spots' class='fnname'>get_all_parking_spots</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></h3><div class='docblock'><p>(Filled, available)</p>
|
||
</div><h3 id='tymethod.path_to_free_parking_spot' class='method'><code>fn <a href='#tymethod.path_to_free_parking_spot' class='fnname'>path_to_free_parking_spot</a>(<br> &self, <br> start: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, <br> vehicle: &<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br> target: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../map_model/pathfind/enum.PathStep.html" title="enum map_model::pathfind::PathStep">PathStep</a>>, <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code></h3><div class='docblock'><p>Unrealistically assumes the driver has knowledge of currently free parking spots, even if
|
||
they're far away. Since they don't reserve the spot in advance, somebody else can still beat
|
||
them there, producing some nice, realistic churn if there's too much contention.
|
||
The first PathStep is the turn after start, NOT PathStep::Lane(start).</p>
|
||
</div><h3 id='tymethod.collect_events' class='method'><code>fn <a href='#tymethod.collect_events' class='fnname'>collect_events</a>(&mut self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/events/enum.Event.html" title="enum sim::events::Event">Event</a>></code></h3><h3 id='tymethod.all_parked_car_positions' class='method'><code>fn <a href='#tymethod.all_parked_car_positions' class='fnname'>all_parked_car_positions</a>(&self, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a>, <a class="struct" href="../../../sim/struct.PersonID.html" title="struct sim::PersonID">PersonID</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code></h3><h3 id='tymethod.bldg_to_parked_cars' class='method'><code>fn <a href='#tymethod.bldg_to_parked_cars' class='fnname'>bldg_to_parked_cars</a>(&self, b: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>></code></h3></div><span class='loading-content'>Loading content...</span><h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><div class='item-list' id='implementors-list'><h3 id='impl-ParkingSim' class='impl'><code class='in-band'>impl ParkingSim for <a class="enum" href="../../../sim/mechanics/parking/enum.ParkingSimState.html" title="enum sim::mechanics::parking::ParkingSimState">ParkingSimState</a></code><a href='#impl-ParkingSim' class='anchor'></a><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.handle_live_edits' class="method"><code>fn <a href='#method.handle_live_edits' class='fnname'>handle_live_edits</a>(<br> &mut self, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> timer: &mut <a class="struct" href="../../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns any cars that got very abruptly evicted from existence, and also cars actively
|
||
moving into a deleted spot.</p>
|
||
</div><h4 id='method.get_free_onstreet_spots' class="method hidden"><code>fn <a href='#method.get_free_onstreet_spots' class='fnname'>get_free_onstreet_spots</a>(&self, l: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><h4 id='method.get_free_offstreet_spots' class="method hidden"><code>fn <a href='#method.get_free_offstreet_spots' class='fnname'>get_free_offstreet_spots</a>(&self, b: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><h4 id='method.get_free_lot_spots' class="method hidden"><code>fn <a href='#method.get_free_lot_spots' class='fnname'>get_free_lot_spots</a>(&self, pl: <a class="struct" href="../../../map_model/objects/parking_lot/struct.ParkingLotID.html" title="struct map_model::objects::parking_lot::ParkingLotID">ParkingLotID</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><h4 id='method.reserve_spot' class="method hidden"><code>fn <a href='#method.reserve_spot' class='fnname'>reserve_spot</a>(&mut self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, car: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>)</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><h4 id='method.remove_parked_car' class="method hidden"><code>fn <a href='#method.remove_parked_car' class='fnname'>remove_parked_car</a>(&mut self, p: <a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>)</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><h4 id='method.add_parked_car' class="method hidden"><code>fn <a href='#method.add_parked_car' class='fnname'>add_parked_car</a>(&mut self, p: <a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>)</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><h4 id='method.get_draw_cars' class="method hidden"><code>fn <a href='#method.get_draw_cars' class='fnname'>get_draw_cars</a>(&self, id: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><h4 id='method.get_draw_cars_in_lots' class="method hidden"><code>fn <a href='#method.get_draw_cars_in_lots' class='fnname'>get_draw_cars_in_lots</a>(&self, id: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><h4 id='method.get_draw_car' class="method hidden"><code>fn <a href='#method.get_draw_car' class='fnname'>get_draw_car</a>(&self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><h4 id='method.canonical_pt' class="method"><code>fn <a href='#method.canonical_pt' class='fnname'>canonical_pt</a>(&self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><div class='docblock'><p>There's no DrawCarInput for cars parked offstreet, so we need this.</p>
|
||
</div><h4 id='method.get_all_draw_cars' class="method hidden"><code>fn <a href='#method.get_all_draw_cars' class='fnname'>get_all_draw_cars</a>(&self, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><h4 id='method.is_free' class="method hidden"><code>fn <a href='#method.is_free' class='fnname'>is_free</a>(&self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><h4 id='method.get_car_at_spot' class="method hidden"><code>fn <a href='#method.get_car_at_spot' class='fnname'>get_car_at_spot</a>(&self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><h4 id='method.get_all_free_spots' class="method"><code>fn <a href='#method.get_all_free_spots' class='fnname'>get_all_free_spots</a>(<br> &self, <br> driving_pos: <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a>, <br> vehicle: &<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br> target: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><div class='docblock'><p>The vehicle's front is currently at the given driving_pos. Returns all valid spots and their
|
||
driving position.</p>
|
||
</div><h4 id='method.spot_to_driving_pos' class="method hidden"><code>fn <a href='#method.spot_to_driving_pos' class='fnname'>spot_to_driving_pos</a>(<br> &self, <br> spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <br> vehicle: &<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -> <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><h4 id='method.spot_to_sidewalk_pos' class="method hidden"><code>fn <a href='#method.spot_to_sidewalk_pos' class='fnname'>spot_to_sidewalk_pos</a>(&self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><h4 id='method.get_owner_of_car' class="method hidden"><code>fn <a href='#method.get_owner_of_car' class='fnname'>get_owner_of_car</a>(&self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../sim/struct.PersonID.html" title="struct sim::PersonID">PersonID</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><h4 id='method.lookup_parked_car' class="method hidden"><code>fn <a href='#method.lookup_parked_car' class='fnname'>lookup_parked_car</a>(&self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><h4 id='method.get_all_parking_spots' class="method"><code>fn <a href='#method.get_all_parking_spots' class='fnname'>get_all_parking_spots</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><div class='docblock'><p>(Filled, available)</p>
|
||
</div><h4 id='method.path_to_free_parking_spot' class="method"><code>fn <a href='#method.path_to_free_parking_spot' class='fnname'>path_to_free_parking_spot</a>(<br> &self, <br> start: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, <br> vehicle: &<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br> target: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../map_model/pathfind/enum.PathStep.html" title="enum map_model::pathfind::PathStep">PathStep</a>>, <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><div class='docblock'><p>Unrealistically assumes the driver has knowledge of currently free parking spots, even if
|
||
they're far away. Since they don't reserve the spot in advance, somebody else can still beat
|
||
them there, producing some nice, realistic churn if there's too much contention.
|
||
The first PathStep is the turn after start, NOT PathStep::Lane(start).</p>
|
||
</div><h4 id='method.collect_events' class="method hidden"><code>fn <a href='#method.collect_events' class='fnname'>collect_events</a>(&mut self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/events/enum.Event.html" title="enum sim::events::Event">Event</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><h4 id='method.all_parked_car_positions' class="method hidden"><code>fn <a href='#method.all_parked_car_positions' class='fnname'>all_parked_car_positions</a>(&self, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a>, <a class="struct" href="../../../sim/struct.PersonID.html" title="struct sim::PersonID">PersonID</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><h4 id='method.bldg_to_parked_cars' class="method hidden"><code>fn <a href='#method.bldg_to_parked_cars' class='fnname'>bldg_to_parked_cars</a>(&self, b: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParkingSim-1' class='impl'><code class='in-band'>impl ParkingSim for <a class="struct" href="../../../sim/mechanics/parking/struct.InfiniteParkingSimState.html" title="struct sim::mechanics::parking::InfiniteParkingSimState">InfiniteParkingSimState</a></code><a href='#impl-ParkingSim-1' class='anchor'></a><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#779-1004' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.handle_live_edits-1' class="method hidden"><code>fn <a href='#method.handle_live_edits-1' class='fnname'>handle_live_edits</a>(<br> &mut self, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> _: &mut <a class="struct" href="../../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#780-787' title='goto source code'>[src]</a></h4><h4 id='method.get_free_onstreet_spots-1' class="method hidden"><code>fn <a href='#method.get_free_onstreet_spots-1' class='fnname'>get_free_onstreet_spots</a>(&self, _: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#789-791' title='goto source code'>[src]</a></h4><h4 id='method.get_free_offstreet_spots-1' class="method hidden"><code>fn <a href='#method.get_free_offstreet_spots-1' class='fnname'>get_free_offstreet_spots</a>(&self, b: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#793-796' title='goto source code'>[src]</a></h4><h4 id='method.get_free_lot_spots-1' class="method hidden"><code>fn <a href='#method.get_free_lot_spots-1' class='fnname'>get_free_lot_spots</a>(&self, _: <a class="struct" href="../../../map_model/objects/parking_lot/struct.ParkingLotID.html" title="struct map_model::objects::parking_lot::ParkingLotID">ParkingLotID</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#798-800' title='goto source code'>[src]</a></h4><h4 id='method.reserve_spot-1' class="method hidden"><code>fn <a href='#method.reserve_spot-1' class='fnname'>reserve_spot</a>(&mut self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, car: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>)</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#802-805' title='goto source code'>[src]</a></h4><h4 id='method.remove_parked_car-1' class="method hidden"><code>fn <a href='#method.remove_parked_car-1' class='fnname'>remove_parked_car</a>(&mut self, p: <a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>)</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#807-816' title='goto source code'>[src]</a></h4><h4 id='method.add_parked_car-1' class="method hidden"><code>fn <a href='#method.add_parked_car-1' class='fnname'>add_parked_car</a>(&mut self, p: <a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>)</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#818-829' title='goto source code'>[src]</a></h4><h4 id='method.get_draw_cars-1' class="method hidden"><code>fn <a href='#method.get_draw_cars-1' class='fnname'>get_draw_cars</a>(&self, _: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, _: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#831-833' title='goto source code'>[src]</a></h4><h4 id='method.get_draw_cars_in_lots-1' class="method hidden"><code>fn <a href='#method.get_draw_cars_in_lots-1' class='fnname'>get_draw_cars_in_lots</a>(&self, _: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, _: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#835-837' title='goto source code'>[src]</a></h4><h4 id='method.get_draw_car-1' class="method hidden"><code>fn <a href='#method.get_draw_car-1' class='fnname'>get_draw_car</a>(&self, _: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, _: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#839-841' title='goto source code'>[src]</a></h4><h4 id='method.canonical_pt-1' class="method hidden"><code>fn <a href='#method.canonical_pt-1' class='fnname'>canonical_pt</a>(&self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#843-849' title='goto source code'>[src]</a></h4><h4 id='method.get_all_draw_cars-1' class="method hidden"><code>fn <a href='#method.get_all_draw_cars-1' class='fnname'>get_all_draw_cars</a>(&self, _: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#851-853' title='goto source code'>[src]</a></h4><h4 id='method.is_free-1' class="method hidden"><code>fn <a href='#method.is_free-1' class='fnname'>is_free</a>(&self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#855-857' title='goto source code'>[src]</a></h4><h4 id='method.get_car_at_spot-1' class="method hidden"><code>fn <a href='#method.get_car_at_spot-1' class='fnname'>get_car_at_spot</a>(&self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#859-862' title='goto source code'>[src]</a></h4><h4 id='method.get_all_free_spots-1' class="method hidden"><code>fn <a href='#method.get_all_free_spots-1' class='fnname'>get_all_free_spots</a>(<br> &self, <br> driving_pos: <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a>, <br> vehicle: &<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br> target: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#864-892' title='goto source code'>[src]</a></h4><h4 id='method.spot_to_driving_pos-1' class="method hidden"><code>fn <a href='#method.spot_to_driving_pos-1' class='fnname'>spot_to_driving_pos</a>(<br> &self, <br> spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <br> _: &<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -> <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#894-899' title='goto source code'>[src]</a></h4><h4 id='method.spot_to_sidewalk_pos-1' class="method hidden"><code>fn <a href='#method.spot_to_sidewalk_pos-1' class='fnname'>spot_to_sidewalk_pos</a>(&self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#901-906' title='goto source code'>[src]</a></h4><h4 id='method.get_owner_of_car-1' class="method hidden"><code>fn <a href='#method.get_owner_of_car-1' class='fnname'>get_owner_of_car</a>(&self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../sim/struct.PersonID.html" title="struct sim::PersonID">PersonID</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#908-910' title='goto source code'>[src]</a></h4><h4 id='method.lookup_parked_car-1' class="method hidden"><code>fn <a href='#method.lookup_parked_car-1' class='fnname'>lookup_parked_car</a>(&self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#911-913' title='goto source code'>[src]</a></h4><h4 id='method.get_all_parking_spots-1' class="method hidden"><code>fn <a href='#method.get_all_parking_spots-1' class='fnname'>get_all_parking_spots</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#915-917' title='goto source code'>[src]</a></h4><h4 id='method.path_to_free_parking_spot-1' class="method hidden"><code>fn <a href='#method.path_to_free_parking_spot-1' class='fnname'>path_to_free_parking_spot</a>(<br> &self, <br> start: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, <br> vehicle: &<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br> target: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../map_model/pathfind/enum.PathStep.html" title="enum map_model::pathfind::PathStep">PathStep</a>>, <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#919-974' title='goto source code'>[src]</a></h4><h4 id='method.collect_events-1' class="method hidden"><code>fn <a href='#method.collect_events-1' class='fnname'>collect_events</a>(&mut self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/events/enum.Event.html" title="enum sim::events::Event">Event</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#976-978' title='goto source code'>[src]</a></h4><h4 id='method.all_parked_car_positions-1' class="method hidden"><code>fn <a href='#method.all_parked_car_positions-1' class='fnname'>all_parked_car_positions</a>(&self, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a>, <a class="struct" href="../../../sim/struct.PersonID.html" title="struct sim::PersonID">PersonID</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#980-990' title='goto source code'>[src]</a></h4><h4 id='method.bldg_to_parked_cars-1' class="method hidden"><code>fn <a href='#method.bldg_to_parked_cars-1' class='fnname'>bldg_to_parked_cars</a>(&self, b: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#992-1003' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParkingSim-2' class='impl'><code class='in-band'>impl ParkingSim for <a class="struct" href="../../../sim/mechanics/parking/struct.NormalParkingSimState.html" title="struct sim::mechanics::parking::NormalParkingSimState">NormalParkingSimState</a></code><a href='#impl-ParkingSim-2' class='anchor'></a><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#192-614' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.handle_live_edits-2' class="method hidden"><code>fn <a href='#method.handle_live_edits-2' class='fnname'>handle_live_edits</a>(<br> &mut self, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> timer: &mut <a class="struct" href="../../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#193-231' title='goto source code'>[src]</a></h4><h4 id='method.get_free_onstreet_spots-2' class="method hidden"><code>fn <a href='#method.get_free_onstreet_spots-2' class='fnname'>get_free_onstreet_spots</a>(&self, l: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#233-243' title='goto source code'>[src]</a></h4><h4 id='method.get_free_offstreet_spots-2' class="method hidden"><code>fn <a href='#method.get_free_offstreet_spots-2' class='fnname'>get_free_offstreet_spots</a>(&self, b: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#245-254' title='goto source code'>[src]</a></h4><h4 id='method.get_free_lot_spots-2' class="method hidden"><code>fn <a href='#method.get_free_lot_spots-2' class='fnname'>get_free_lot_spots</a>(&self, pl: <a class="struct" href="../../../map_model/objects/parking_lot/struct.ParkingLotID.html" title="struct map_model::objects::parking_lot::ParkingLotID">ParkingLotID</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#256-265' title='goto source code'>[src]</a></h4><h4 id='method.reserve_spot-2' class="method hidden"><code>fn <a href='#method.reserve_spot-2' class='fnname'>reserve_spot</a>(&mut self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, car: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>)</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#267-283' title='goto source code'>[src]</a></h4><h4 id='method.remove_parked_car-2' class="method hidden"><code>fn <a href='#method.remove_parked_car-2' class='fnname'>remove_parked_car</a>(&mut self, p: <a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>)</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#285-294' title='goto source code'>[src]</a></h4><h4 id='method.add_parked_car-2' class="method hidden"><code>fn <a href='#method.add_parked_car-2' class='fnname'>add_parked_car</a>(&mut self, p: <a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>)</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#296-307' title='goto source code'>[src]</a></h4><h4 id='method.get_draw_cars-2' class="method hidden"><code>fn <a href='#method.get_draw_cars-2' class='fnname'>get_draw_cars</a>(&self, id: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#309-319' title='goto source code'>[src]</a></h4><h4 id='method.get_draw_cars_in_lots-2' class="method hidden"><code>fn <a href='#method.get_draw_cars_in_lots-2' class='fnname'>get_draw_cars_in_lots</a>(&self, id: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#321-333' title='goto source code'>[src]</a></h4><h4 id='method.get_draw_car-2' class="method hidden"><code>fn <a href='#method.get_draw_car-2' class='fnname'>get_draw_car</a>(&self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#335-378' title='goto source code'>[src]</a></h4><h4 id='method.canonical_pt-2' class="method hidden"><code>fn <a href='#method.canonical_pt-2' class='fnname'>canonical_pt</a>(&self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#380-393' title='goto source code'>[src]</a></h4><h4 id='method.get_all_draw_cars-2' class="method hidden"><code>fn <a href='#method.get_all_draw_cars-2' class='fnname'>get_all_draw_cars</a>(&self, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#395-400' title='goto source code'>[src]</a></h4><h4 id='method.is_free-2' class="method hidden"><code>fn <a href='#method.is_free-2' class='fnname'>is_free</a>(&self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#402-404' title='goto source code'>[src]</a></h4><h4 id='method.get_car_at_spot-2' class="method hidden"><code>fn <a href='#method.get_car_at_spot-2' class='fnname'>get_car_at_spot</a>(&self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#406-409' title='goto source code'>[src]</a></h4><h4 id='method.get_all_free_spots-2' class="method hidden"><code>fn <a href='#method.get_all_free_spots-2' class='fnname'>get_all_free_spots</a>(<br> &self, <br> driving_pos: <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a>, <br> vehicle: &<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br> target: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#411-465' title='goto source code'>[src]</a></h4><h4 id='method.spot_to_driving_pos-2' class="method hidden"><code>fn <a href='#method.spot_to_driving_pos-2' class='fnname'>spot_to_driving_pos</a>(<br> &self, <br> spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <br> vehicle: &<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -> <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#467-480' title='goto source code'>[src]</a></h4><h4 id='method.spot_to_sidewalk_pos-2' class="method hidden"><code>fn <a href='#method.spot_to_sidewalk_pos-2' class='fnname'>spot_to_sidewalk_pos</a>(&self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#482-496' title='goto source code'>[src]</a></h4><h4 id='method.get_owner_of_car-2' class="method hidden"><code>fn <a href='#method.get_owner_of_car-2' class='fnname'>get_owner_of_car</a>(&self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../sim/struct.PersonID.html" title="struct sim::PersonID">PersonID</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#498-500' title='goto source code'>[src]</a></h4><h4 id='method.lookup_parked_car-2' class="method hidden"><code>fn <a href='#method.lookup_parked_car-2' class='fnname'>lookup_parked_car</a>(&self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#501-503' title='goto source code'>[src]</a></h4><h4 id='method.get_all_parking_spots-2' class="method hidden"><code>fn <a href='#method.get_all_parking_spots-2' class='fnname'>get_all_parking_spots</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#505-531' title='goto source code'>[src]</a></h4><h4 id='method.path_to_free_parking_spot-2' class="method hidden"><code>fn <a href='#method.path_to_free_parking_spot-2' class='fnname'>path_to_free_parking_spot</a>(<br> &self, <br> start: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, <br> vehicle: &<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br> target: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../map_model/pathfind/enum.PathStep.html" title="enum map_model::pathfind::PathStep">PathStep</a>>, <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#533-586' title='goto source code'>[src]</a></h4><h4 id='method.collect_events-2' class="method hidden"><code>fn <a href='#method.collect_events-2' class='fnname'>collect_events</a>(&mut self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../sim/events/enum.Event.html" title="enum sim::events::Event">Event</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#588-590' title='goto source code'>[src]</a></h4><h4 id='method.all_parked_car_positions-2' class="method hidden"><code>fn <a href='#method.all_parked_car_positions-2' class='fnname'>all_parked_car_positions</a>(&self, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a>, <a class="struct" href="../../../sim/struct.PersonID.html" title="struct sim::PersonID">PersonID</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#592-602' title='goto source code'>[src]</a></h4><h4 id='method.bldg_to_parked_cars-2' class="method hidden"><code>fn <a href='#method.bldg_to_parked_cars-2' class='fnname'>bldg_to_parked_cars</a>(&self, b: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>></code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#604-613' title='goto source code'>[src]</a></h4></div></div><span class='loading-content'>Loading content...</span><script type="text/javascript" src="../../../implementors/sim/mechanics/parking/trait.ParkingSim.js" async></script></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "sim";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html> |