abstreet/rustdoc/sim/mechanics/parking/trait.ParkingSim.html
2020-10-07 21:37:09 +00:00

28 lines
88 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><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">&#9776;</div><a href='../../../sim/index.html'><div class='logo-container'><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><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#24-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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;timer: &amp;mut <a class="struct" href="../../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.get_free_onstreet_spots' class='fnname'>get_free_onstreet_spots</a>(&amp;self, l: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.get_free_offstreet_spots' class='fnname'>get_free_offstreet_spots</a>(&amp;self, b: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.get_free_lot_spots' class='fnname'>get_free_lot_spots</a>(&amp;self, pl: <a class="struct" href="../../../map_model/objects/parking_lot/struct.ParkingLotID.html" title="struct map_model::objects::parking_lot::ParkingLotID">ParkingLotID</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.reserve_spot' class='fnname'>reserve_spot</a>(&amp;mut self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>);
<div class='item-spacer'></div> fn <a href='#tymethod.remove_parked_car' class='fnname'>remove_parked_car</a>(&amp;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>(&amp;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>(&amp;self, id: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.get_draw_cars_in_lots' class='fnname'>get_draw_cars_in_lots</a>(&amp;self, id: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.get_draw_car' class='fnname'>get_draw_car</a>(&amp;self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.canonical_pt' class='fnname'>canonical_pt</a>(&amp;self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.get_all_draw_cars' class='fnname'>get_all_draw_cars</a>(&amp;self, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.is_free' class='fnname'>is_free</a>(&amp;self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>) -&gt; <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>(&amp;self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.get_all_free_spots' class='fnname'>get_all_free_spots</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;driving_pos: <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vehicle: &amp;<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;target: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<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>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.spot_to_driving_pos' class='fnname'>spot_to_driving_pos</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vehicle: &amp;<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <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>(&amp;self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <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>(&amp;self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../sim/struct.PersonID.html" title="struct sim::PersonID">PersonID</a>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.lookup_parked_car' class='fnname'>lookup_parked_car</a>(&amp;self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.get_all_parking_spots' class='fnname'>get_all_parking_spots</a>(&amp;self) -&gt; <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>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;start: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vehicle: &amp;<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;target: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<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>&lt;<a class="enum" href="../../../map_model/pathfind/enum.PathStep.html" title="enum map_model::pathfind::PathStep">PathStep</a>&gt;, <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>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.collect_events' class='fnname'>collect_events</a>(&amp;mut self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/events/enum.Event.html" title="enum sim::events::Event">Event</a>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.all_parked_car_positions' class='fnname'>all_parked_car_positions</a>(&amp;self, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<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>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.bldg_to_parked_cars' class='fnname'>bldg_to_parked_cars</a>(&amp;self, b: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>&gt;;
}</pre></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>(&amp;mut self, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, timer: &amp;mut <a class="struct" href="../../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>&gt;</code></h3><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>(&amp;self, l: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;</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>(&amp;self, b: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;</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>(&amp;self, pl: <a class="struct" href="../../../map_model/objects/parking_lot/struct.ParkingLotID.html" title="struct map_model::objects::parking_lot::ParkingLotID">ParkingLotID</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;</code></h3><h3 id='tymethod.reserve_spot' class='method'><code>fn <a href='#tymethod.reserve_spot' class='fnname'>reserve_spot</a>(&amp;mut self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</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>(&amp;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>(&amp;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>(&amp;self, id: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>&gt;</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>(&amp;self, id: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>&gt;</code></h3><h3 id='tymethod.get_draw_car' class='method'><code>fn <a href='#tymethod.get_draw_car' class='fnname'>get_draw_car</a>(&amp;self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>&gt;</code></h3><h3 id='tymethod.canonical_pt' class='method'><code>fn <a href='#tymethod.canonical_pt' class='fnname'>canonical_pt</a>(&amp;self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt;</code></h3><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>(&amp;self, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>&gt;</code></h3><h3 id='tymethod.is_free' class='method'><code>fn <a href='#tymethod.is_free' class='fnname'>is_free</a>(&amp;self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>) -&gt; <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>(&amp;self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>&gt;</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>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;driving_pos: <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;vehicle: &amp;<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;target: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<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>&gt;</code></h3><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>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;vehicle: &amp;<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -&gt; <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>(&amp;self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <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>(&amp;self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../sim/struct.PersonID.html" title="struct sim::PersonID">PersonID</a>&gt;</code></h3><h3 id='tymethod.lookup_parked_car' class='method'><code>fn <a href='#tymethod.lookup_parked_car' class='fnname'>lookup_parked_car</a>(&amp;self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>&gt;</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>(&amp;self) -&gt; <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>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></h3><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>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;start: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;vehicle: &amp;<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;target: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<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>&lt;<a class="enum" href="../../../map_model/pathfind/enum.PathStep.html" title="enum map_model::pathfind::PathStep">PathStep</a>&gt;, <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>&gt;</code></h3><h3 id='tymethod.collect_events' class='method'><code>fn <a href='#tymethod.collect_events' class='fnname'>collect_events</a>(&amp;mut self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/events/enum.Event.html" title="enum sim::events::Event">Event</a>&gt;</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>(&amp;self, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<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>&gt;</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>(&amp;self, b: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>&gt;</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 hidden"><code>fn <a href='#method.handle_live_edits' class='fnname'>handle_live_edits</a>(&amp;mut self, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, timer: &amp;mut <a class="struct" href="../../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><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>(&amp;self, l: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;</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>(&amp;self, b: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;</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>(&amp;self, pl: <a class="struct" href="../../../map_model/objects/parking_lot/struct.ParkingLotID.html" title="struct map_model::objects::parking_lot::ParkingLotID">ParkingLotID</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;</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>(&amp;mut self, spot: <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.remove_parked_car' class="method hidden"><code>fn <a href='#method.remove_parked_car' class='fnname'>remove_parked_car</a>(&amp;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>(&amp;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>(&amp;self, id: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>&gt;</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>(&amp;self, id: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>&gt;</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>(&amp;self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>&gt;</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 hidden"><code>fn <a href='#method.canonical_pt' class='fnname'>canonical_pt</a>(&amp;self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><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>(&amp;self, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>&gt;</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>(&amp;self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>) -&gt; <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>(&amp;self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>&gt;</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 hidden"><code>fn <a href='#method.get_all_free_spots' class='fnname'>get_all_free_spots</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;driving_pos: <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;vehicle: &amp;<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;target: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<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>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><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>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;vehicle: &amp;<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -&gt; <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>(&amp;self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <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>(&amp;self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../sim/struct.PersonID.html" title="struct sim::PersonID">PersonID</a>&gt;</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>(&amp;self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>&gt;</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 hidden"><code>fn <a href='#method.get_all_parking_spots' class='fnname'>get_all_parking_spots</a>(&amp;self) -&gt; <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>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;<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.path_to_free_parking_spot' class="method hidden"><code>fn <a href='#method.path_to_free_parking_spot' class='fnname'>path_to_free_parking_spot</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;start: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;vehicle: &amp;<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;target: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<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>&lt;<a class="enum" href="../../../map_model/pathfind/enum.PathStep.html" title="enum map_model::pathfind::PathStep">PathStep</a>&gt;, <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>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#74' title='goto source code'>[src]</a></h4><h4 id='method.collect_events' class="method hidden"><code>fn <a href='#method.collect_events' class='fnname'>collect_events</a>(&amp;mut self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/events/enum.Event.html" title="enum sim::events::Event">Event</a>&gt;</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>(&amp;self, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<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>&gt;</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>(&amp;self, b: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>&gt;</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#765-990' 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>(&amp;mut self, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, _: &amp;mut <a class="struct" href="../../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#766-773' 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>(&amp;self, _: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#775-777' 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>(&amp;self, b: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#779-782' 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>(&amp;self, _: <a class="struct" href="../../../map_model/objects/parking_lot/struct.ParkingLotID.html" title="struct map_model::objects::parking_lot::ParkingLotID">ParkingLotID</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#784-786' 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>(&amp;mut self, spot: <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#788-791' 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>(&amp;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#793-802' 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>(&amp;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#804-815' 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>(&amp;self, _: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, _: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#817-819' 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>(&amp;self, _: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, _: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#821-823' 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>(&amp;self, _: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, _: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#825-827' 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>(&amp;self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#829-835' 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>(&amp;self, _: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#837-839' 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>(&amp;self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>) -&gt; <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#841-843' 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>(&amp;self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#845-848' 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>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;driving_pos: <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;vehicle: &amp;<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;target: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<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>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#850-878' 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>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;_: &amp;<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -&gt; <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#880-885' 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>(&amp;self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <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#887-892' 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>(&amp;self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../sim/struct.PersonID.html" title="struct sim::PersonID">PersonID</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#894-896' 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>(&amp;self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#897-899' 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>(&amp;self) -&gt; <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>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;<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#901-903' 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>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;start: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;vehicle: &amp;<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;target: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<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>&lt;<a class="enum" href="../../../map_model/pathfind/enum.PathStep.html" title="enum map_model::pathfind::PathStep">PathStep</a>&gt;, <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>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#905-960' 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>(&amp;mut self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/events/enum.Event.html" title="enum sim::events::Event">Event</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#962-964' 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>(&amp;self, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<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>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#966-976' 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>(&amp;self, b: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#978-989' 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#188-604' 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>(&amp;mut self, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, timer: &amp;mut <a class="struct" href="../../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#189-221' 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>(&amp;self, l: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#223-233' 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>(&amp;self, b: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#235-244' 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>(&amp;self, pl: <a class="struct" href="../../../map_model/objects/parking_lot/struct.ParkingLotID.html" title="struct map_model::objects::parking_lot::ParkingLotID">ParkingLotID</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#246-255' 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>(&amp;mut self, spot: <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#257-273' 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>(&amp;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#275-284' 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>(&amp;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#286-297' 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>(&amp;self, id: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#299-309' 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>(&amp;self, id: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#311-323' 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>(&amp;self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#325-368' 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>(&amp;self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#370-383' 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>(&amp;self, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.DrawCarInput.html" title="struct sim::DrawCarInput">DrawCarInput</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#385-390' 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>(&amp;self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>) -&gt; <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#392-394' 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>(&amp;self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#396-399' 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>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;driving_pos: <a class="struct" href="../../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;vehicle: &amp;<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;target: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<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>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#401-455' 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>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;vehicle: &amp;<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -&gt; <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#457-470' 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>(&amp;self, spot: <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <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#472-486' 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>(&amp;self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../sim/struct.PersonID.html" title="struct sim::PersonID">PersonID</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#488-490' 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>(&amp;self, id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../../sim/struct.ParkedCar.html" title="struct sim::ParkedCar">ParkedCar</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#491-493' 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>(&amp;self) -&gt; <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>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>&gt;<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#495-521' 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>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;start: <a class="struct" href="../../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;vehicle: &amp;<a class="struct" href="../../../sim/struct.Vehicle.html" title="struct sim::Vehicle">Vehicle</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;target: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<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>&lt;<a class="enum" href="../../../map_model/pathfind/enum.PathStep.html" title="enum map_model::pathfind::PathStep">PathStep</a>&gt;, <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>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#523-576' 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>(&amp;mut self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../sim/events/enum.Event.html" title="enum sim::events::Event">Event</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#578-580' 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>(&amp;self, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<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>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#582-592' 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>(&amp;self, b: <a class="struct" href="../../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>&gt;</code><a class='srclink' href='../../../src/sim/mechanics/parking.rs.html#594-603' 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>