mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-28 08:53:26 +03:00
63 lines
97 KiB
HTML
63 lines
97 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 id="default-settings"></script><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.spot_to_sidewalk_pos">spot_to_sidewalk_pos</a><a href="#tymethod.get_free_offstreet_spots">get_free_offstreet_spots</a><a href="#tymethod.get_all_parking_spots">get_all_parking_spots</a><a href="#tymethod.get_draw_car">get_draw_car</a><a href="#tymethod.reserve_spot">reserve_spot</a><a href="#tymethod.add_parked_car">add_parked_car</a><a href="#tymethod.unreserve_spot">unreserve_spot</a><a href="#tymethod.collect_events">collect_events</a><a href="#tymethod.handle_live_edits">handle_live_edits</a><a href="#tymethod.get_all_draw_cars">get_all_draw_cars</a><a href="#tymethod.get_owner_of_car">get_owner_of_car</a><a href="#tymethod.get_free_onstreet_spots">get_free_onstreet_spots</a><a href="#tymethod.get_free_lot_spots">get_free_lot_spots</a><a href="#tymethod.remove_parked_car">remove_parked_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.canonical_pt">canonical_pt</a><a href="#tymethod.is_free">is_free</a><a href="#tymethod.get_car_at_spot">get_car_at_spot</a><a href="#tymethod.get_all_free_spots">get_all_free_spots</a><a href="#tymethod.spot_to_driving_pos">spot_to_driving_pos</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.all_parked_car_positions">all_parked_car_positions</a><a href="#tymethod.bldg_to_parked_cars">bldg_to_parked_cars</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><div id="sidebar-vars" data-name="ParkingSim" data-ty="trait" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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><button type="button" class="help-button">?</button>
|
||
<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="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><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#25-78" title="goto source code">[src]</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>(&mut self, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</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="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.unreserve_spot" class="fnname">unreserve_spot</a>(&mut self, 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/render/struct.DrawCarInput.html" title="struct sim::render::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/render/struct.DrawCarInput.html" title="struct sim::render::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/render/struct.DrawCarInput.html" title="struct sim::render::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/render/struct.DrawCarInput.html" title="struct sim::render::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/v1/enum.PathStep.html" title="enum map_model::pathfind::v1::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>(&mut self, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</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="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#28" title="goto source code">[src]</a></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><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#29" title="goto source code">[src]</a></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><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#30" title="goto source code">[src]</a></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><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#31" title="goto source code">[src]</a></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><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#32" title="goto source code">[src]</a></h3><h3 id="tymethod.unreserve_spot" class="method"><code>fn <a href="#tymethod.unreserve_spot" class="fnname">unreserve_spot</a>(&mut self, 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#34" title="goto source code">[src]</a></h3><div class="docblock"><p>Needed when abruptly deleting a car, in case they're being deleted during their last step.</p>
|
||
</div><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><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#35" title="goto source code">[src]</a></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><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#36" title="goto source code">[src]</a></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/render/struct.DrawCarInput.html" title="struct sim::render::DrawCarInput">DrawCarInput</a>></code><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#37" title="goto source code">[src]</a></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/render/struct.DrawCarInput.html" title="struct sim::render::DrawCarInput">DrawCarInput</a>></code><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#38" title="goto source code">[src]</a></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/render/struct.DrawCarInput.html" title="struct sim::render::DrawCarInput">DrawCarInput</a>></code><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#39" title="goto source code">[src]</a></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><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#41" title="goto source code">[src]</a></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/render/struct.DrawCarInput.html" title="struct sim::render::DrawCarInput">DrawCarInput</a>></code><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#42" title="goto source code">[src]</a></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><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#43" title="goto source code">[src]</a></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><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#44" title="goto source code">[src]</a></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><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#47-55" title="goto source code">[src]</a></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><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#56" title="goto source code">[src]</a></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><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#57" title="goto source code">[src]</a></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><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#58" title="goto source code">[src]</a></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><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#59" title="goto source code">[src]</a></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><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#61" title="goto source code">[src]</a></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/v1/enum.PathStep.html" title="enum map_model::pathfind::v1::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#68-74" title="goto source code">[src]</a></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. But
|
||
the implementation has some internal jitter between different vehicles, to discourage
|
||
everybody near one spot from all competing for it.
|
||
Note 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><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#75" title="goto source code">[src]</a></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><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#76" title="goto source code">[src]</a></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><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#77" title="goto source code">[src]</a></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#80" 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>(&mut self, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</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="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#80" 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#80" 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#80" 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#80" 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#80" title="goto source code">[src]</a></h4><h4 id="method.unreserve_spot" class="method"><code>fn <a href="#method.unreserve_spot" class="fnname">unreserve_spot</a>(&mut self, 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#80" title="goto source code">[src]</a></h4><div class="docblock"><p>Needed when abruptly deleting a car, in case they're being deleted during their last step.</p>
|
||
</div><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#80" 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#80" 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/render/struct.DrawCarInput.html" title="struct sim::render::DrawCarInput">DrawCarInput</a>></code><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#80" 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/render/struct.DrawCarInput.html" title="struct sim::render::DrawCarInput">DrawCarInput</a>></code><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#80" 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/render/struct.DrawCarInput.html" title="struct sim::render::DrawCarInput">DrawCarInput</a>></code><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#80" 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#80" 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/render/struct.DrawCarInput.html" title="struct sim::render::DrawCarInput">DrawCarInput</a>></code><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#80" 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#80" 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#80" 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#80" 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#80" 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#80" 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#80" 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#80" 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#80" 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/v1/enum.PathStep.html" title="enum map_model::pathfind::v1::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#80" 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. But
|
||
the implementation has some internal jitter between different vehicles, to discourage
|
||
everybody near one spot from all competing for it.
|
||
Note 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#80" 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#80" 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#80" 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#804-1033" 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>(&mut self, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</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="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#805-812" 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#814-816" 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#818-821" 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#823-825" 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#827-830" title="goto source code">[src]</a></h4><h4 id="method.unreserve_spot-1" class="method hidden"><code>fn <a href="#method.unreserve_spot-1" class="fnname">unreserve_spot</a>(&mut self, 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#832-834" 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#836-845" 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#847-858" 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/render/struct.DrawCarInput.html" title="struct sim::render::DrawCarInput">DrawCarInput</a>></code><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#860-862" 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/render/struct.DrawCarInput.html" title="struct sim::render::DrawCarInput">DrawCarInput</a>></code><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#864-866" 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/render/struct.DrawCarInput.html" title="struct sim::render::DrawCarInput">DrawCarInput</a>></code><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#868-870" 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#872-878" 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/render/struct.DrawCarInput.html" title="struct sim::render::DrawCarInput">DrawCarInput</a>></code><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#880-882" 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#884-886" 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#888-891" 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#893-921" 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#923-928" 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#930-935" 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#937-939" 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#940-942" 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#944-946" 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/v1/enum.PathStep.html" title="enum map_model::pathfind::v1::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#948-1003" 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#1005-1007" 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#1009-1019" 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#1021-1032" 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#198-638" 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>(&mut self, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</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="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#199-237" 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#239-249" 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#251-260" 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#262-271" 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#273-289" title="goto source code">[src]</a></h4><h4 id="method.unreserve_spot-2" class="method hidden"><code>fn <a href="#method.unreserve_spot-2" class="fnname">unreserve_spot</a>(&mut self, 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#291-293" 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#295-304" 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#306-317" 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/render/struct.DrawCarInput.html" title="struct sim::render::DrawCarInput">DrawCarInput</a>></code><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#319-329" 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/render/struct.DrawCarInput.html" title="struct sim::render::DrawCarInput">DrawCarInput</a>></code><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#331-343" 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/render/struct.DrawCarInput.html" title="struct sim::render::DrawCarInput">DrawCarInput</a>></code><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#345-391" 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#393-406" 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/render/struct.DrawCarInput.html" title="struct sim::render::DrawCarInput">DrawCarInput</a>></code><a class="srclink" href="../../../src/sim/mechanics/parking.rs.html#408-413" 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#415-417" 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#419-422" 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#424-478" 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#480-490" 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#492-506" 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#508-510" 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#511-513" 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#515-541" 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/v1/enum.PathStep.html" title="enum map_model::pathfind::v1::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#543-610" 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#612-614" 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#616-626" 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#628-637" 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><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="sim"></div>
|
||
<script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html> |