mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-25 03:41:09 +03:00
deploy: 83c1c09936
This commit is contained in:
parent
1b55d19992
commit
8930b76547
@ -1,2 +1,2 @@
|
||||
<!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 `apply_map_edits` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, apply_map_edits"><title>game::edit::apply_map_edits - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../index.html'>game</a>::<wbr><a href='index.html'>edit</a></p><script>window.sidebarCurrent = {name: 'apply_map_edits', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/game/edit/mod.rs.html#640-684' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>edit</a>::<wbr><a class="fn" href=''>apply_map_edits</a></span></h1><pre class='rust fn'>pub fn apply_map_edits(ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>, edits: <a class="struct" href="../../map_model/edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/game/edit/mod.rs.html#657-701' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>edit</a>::<wbr><a class="fn" href=''>apply_map_edits</a></span></h1><pre class='rust fn'>pub fn apply_map_edits(ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>, edits: <a class="struct" href="../../map_model/edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,2 +1,2 @@
|
||||
<!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 `can_edit_lane` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, can_edit_lane"><title>game::edit::can_edit_lane - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../index.html'>game</a>::<wbr><a href='index.html'>edit</a></p><script>window.sidebarCurrent = {name: 'can_edit_lane', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/game/edit/mod.rs.html#686-693' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>edit</a>::<wbr><a class="fn" href=''>can_edit_lane</a></span></h1><pre class='rust fn'>pub fn can_edit_lane(mode: &<a class="enum" href="../../game/sandbox/gameplay/enum.GameplayMode.html" title="enum game::sandbox::gameplay::GameplayMode">GameplayMode</a>, l: <a class="struct" href="../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/game/edit/mod.rs.html#703-710' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>edit</a>::<wbr><a class="fn" href=''>can_edit_lane</a></span></h1><pre class='rust fn'>pub fn can_edit_lane(mode: &<a class="enum" href="../../game/sandbox/gameplay/enum.GameplayMode.html" title="enum game::sandbox::gameplay::GameplayMode">GameplayMode</a>, l: <a class="struct" href="../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,2 +1,2 @@
|
||||
<!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 `cmd_to_id` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, cmd_to_id"><title>game::edit::cmd_to_id - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../index.html'>game</a>::<wbr><a href='index.html'>edit</a></p><script>window.sidebarCurrent = {name: 'cmd_to_id', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/game/edit/mod.rs.html#811-817' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>edit</a>::<wbr><a class="fn" href=''>cmd_to_id</a></span></h1><pre class='rust fn'>fn cmd_to_id(cmd: &<a class="enum" href="../../map_model/edits/enum.EditCmd.html" title="enum map_model::edits::EditCmd">EditCmd</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="enum" href="../../game/helpers/enum.ID.html" title="enum game::helpers::ID">ID</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/game/edit/mod.rs.html#828-834' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>edit</a>::<wbr><a class="fn" href=''>cmd_to_id</a></span></h1><pre class='rust fn'>fn cmd_to_id(cmd: &<a class="enum" href="../../map_model/edits/enum.EditCmd.html" title="enum map_model::edits::EditCmd">EditCmd</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="enum" href="../../game/helpers/enum.ID.html" title="enum game::helpers::ID">ID</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,2 +1,2 @@
|
||||
<!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 `make_changelist` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_changelist"><title>game::edit::make_changelist - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../index.html'>game</a>::<wbr><a href='index.html'>edit</a></p><script>window.sidebarCurrent = {name: 'make_changelist', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/game/edit/mod.rs.html#755-808' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>edit</a>::<wbr><a class="fn" href=''>make_changelist</a></span></h1><pre class='rust fn'>fn make_changelist(ctx: &mut EventCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/game/edit/mod.rs.html#772-825' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>edit</a>::<wbr><a class="fn" href=''>make_changelist</a></span></h1><pre class='rust fn'>fn make_changelist(ctx: &mut EventCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,2 +1,2 @@
|
||||
<!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 `make_topcenter` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_topcenter"><title>game::edit::make_topcenter - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../index.html'>game</a>::<wbr><a href='index.html'>edit</a></p><script>window.sidebarCurrent = {name: 'make_topcenter', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/game/edit/mod.rs.html#619-638' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>edit</a>::<wbr><a class="fn" href=''>make_topcenter</a></span></h1><pre class='rust fn'>fn make_topcenter(ctx: &mut EventCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/game/edit/mod.rs.html#636-655' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>edit</a>::<wbr><a class="fn" href=''>make_topcenter</a></span></h1><pre class='rust fn'>fn make_topcenter(ctx: &mut EventCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,2 +1,2 @@
|
||||
<!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 `maybe_edit_intersection` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, maybe_edit_intersection"><title>game::edit::maybe_edit_intersection - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../index.html'>game</a>::<wbr><a href='index.html'>edit</a></p><script>window.sidebarCurrent = {name: 'maybe_edit_intersection', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/game/edit/mod.rs.html#714-753' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>edit</a>::<wbr><a class="fn" href=''>maybe_edit_intersection</a></span></h1><pre class='rust fn'>pub fn maybe_edit_intersection(<br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> id: <a class="struct" href="../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>, <br> mode: &<a class="enum" href="../../game/sandbox/gameplay/enum.GameplayMode.html" title="enum game::sandbox::gameplay::GameplayMode">GameplayMode</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="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../game/game/trait.State.html" title="trait game::game::State">State</a>>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/game/edit/mod.rs.html#731-770' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>edit</a>::<wbr><a class="fn" href=''>maybe_edit_intersection</a></span></h1><pre class='rust fn'>pub fn maybe_edit_intersection(<br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> id: <a class="struct" href="../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>, <br> mode: &<a class="enum" href="../../game/sandbox/gameplay/enum.GameplayMode.html" title="enum game::sandbox::gameplay::GameplayMode">GameplayMode</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="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../game/game/trait.State.html" title="trait game::game::State">State</a>>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,2 +1,2 @@
|
||||
<!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 `speed_limit_choices` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, speed_limit_choices"><title>game::edit::speed_limit_choices - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../index.html'>game</a>::<wbr><a href='index.html'>edit</a></p><script>window.sidebarCurrent = {name: 'speed_limit_choices', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/game/edit/mod.rs.html#695-712' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>edit</a>::<wbr><a class="fn" href=''>speed_limit_choices</a></span></h1><pre class='rust fn'>pub fn speed_limit_choices() -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><Choice<<a class="struct" href="../../geom/speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</a>>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/game/edit/mod.rs.html#712-729' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>edit</a>::<wbr><a class="fn" href=''>speed_limit_choices</a></span></h1><pre class='rust fn'>pub fn speed_limit_choices() -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><Choice<<a class="struct" href="../../geom/speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</a>>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,5 +1,5 @@
|
||||
<!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 `edit` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, edit"><title>game::edit - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[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='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module edit</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#reexports">Re-exports</a></li><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../index.html'>game</a></p><script>window.sidebarCurrent = {name: 'edit', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/game/edit/mod.rs.html#1-866' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>game</a>::<wbr><a class="mod" href=''>edit</a></span></h1><h2 id='reexports' class='section-header'><a href="#reexports">Re-exports</a></h2>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/game/edit/mod.rs.html#1-883' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>game</a>::<wbr><a class="mod" href=''>edit</a></span></h1><h2 id='reexports' class='section-header'><a href="#reexports">Re-exports</a></h2>
|
||||
<table><tr><td><code>pub use self::cluster_traffic_signals::<a class="struct" href="../../game/edit/cluster_traffic_signals/struct.ClusterTrafficSignalEditor.html" title="struct game::edit::cluster_traffic_signals::ClusterTrafficSignalEditor">ClusterTrafficSignalEditor</a>;</code></td></tr><tr><td><code>pub use self::lanes::<a class="struct" href="../../game/edit/lanes/struct.LaneEditor.html" title="struct game::edit::lanes::LaneEditor">LaneEditor</a>;</code></td></tr><tr><td><code>pub use self::routes::<a class="struct" href="../../game/edit/routes/struct.RouteEditor.html" title="struct game::edit::routes::RouteEditor">RouteEditor</a>;</code></td></tr><tr><td><code>pub use self::stop_signs::<a class="struct" href="../../game/edit/stop_signs/struct.StopSignEditor.html" title="struct game::edit::stop_signs::StopSignEditor">StopSignEditor</a>;</code></td></tr><tr><td><code>pub use self::traffic_signals::<a class="struct" href="../../game/edit/traffic_signals/struct.TrafficSignalEditor.html" title="struct game::edit::traffic_signals::TrafficSignalEditor">TrafficSignalEditor</a>;</code></td></tr><tr><td><code>pub use self::validate::<a class="fn" href="../../game/edit/validate/fn.check_blackholes.html" title="fn game::edit::validate::check_blackholes">check_blackholes</a>;</code></td></tr><tr><td><code>pub use self::validate::<a class="fn" href="../../game/edit/validate/fn.check_sidewalk_connectivity.html" title="fn game::edit::validate::check_sidewalk_connectivity">check_sidewalk_connectivity</a>;</code></td></tr><tr><td><code>pub use self::validate::<a class="fn" href="../../game/edit/validate/fn.try_change_lt.html" title="fn game::edit::validate::try_change_lt">try_change_lt</a>;</code></td></tr></table><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
|
||||
<table><tr class='module-item'><td><a class="mod" href="bulk/index.html" title='game::edit::bulk mod'>bulk</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="cluster_traffic_signals/index.html" title='game::edit::cluster_traffic_signals mod'>cluster_traffic_signals</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="lanes/index.html" title='game::edit::lanes mod'>lanes</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="routes/index.html" title='game::edit::routes mod'>routes</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="select/index.html" title='game::edit::select mod'>select</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="stop_signs/index.html" title='game::edit::stop_signs mod'>stop_signs</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="traffic_signals/index.html" title='game::edit::traffic_signals mod'>traffic_signals</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="validate/index.html" title='game::edit::validate mod'>validate</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="zones/index.html" title='game::edit::zones mod'>zones</a></td><td class='docblock-short'></td></tr></table><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.ConfirmDiscard.html" title='game::edit::ConfirmDiscard struct'>ConfirmDiscard</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.EditMode.html" title='game::edit::EditMode struct'>EditMode</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.LoadEdits.html" title='game::edit::LoadEdits struct'>LoadEdits</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.SaveEdits.html" title='game::edit::SaveEdits struct'>SaveEdits</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,3 +1,3 @@
|
||||
<!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 `BUILT_TIME_UTC` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>game::pregame::built_info::BUILT_TIME_UTC - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[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='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a></p><script>window.sidebarCurrent = {name: 'BUILT_TIME_UTC', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-e788b46a21eaee2a/out/built.rs.html#49' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a>::<wbr><a class="constant" href=''>BUILT_TIME_UTC</a></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Thu, 22 Oct 2020 18:39:54 +0000";</pre><div class='docblock'><p>The built-time in RFC2822, UTC</p>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-e788b46a21eaee2a/out/built.rs.html#49' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a>::<wbr><a class="constant" href=''>BUILT_TIME_UTC</a></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Thu, 22 Oct 2020 19:14:46 +0000";</pre><div class='docblock'><p>The built-time in RFC2822, UTC</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
<!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 `sim` mod in crate `sim`."><meta name="keywords" content="rust, rustlang, rust-lang, sim"><title>sim::sim - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[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'>Module sim</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#reexports">Re-exports</a></li><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#constants">Constants</a></li><li><a href="#traits">Traits</a></li></ul></div><p class='location'><a href='../index.html'>sim</a></p><script>window.sidebarCurrent = {name: 'sim', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/sim/sim/mod.rs.html#3-1037' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>sim</a>::<wbr><a class="mod" href=''>sim</a></span></h1><h2 id='reexports' class='section-header'><a href="#reexports">Re-exports</a></h2>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/sim/sim/mod.rs.html#3-1045' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>sim</a>::<wbr><a class="mod" href=''>sim</a></span></h1><h2 id='reexports' class='section-header'><a href="#reexports">Re-exports</a></h2>
|
||||
<table><tr><td><code>pub use self::queries::<a class="struct" href="../../sim/struct.AgentProperties.html" title="struct sim::AgentProperties">AgentProperties</a>;</code></td></tr></table><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
|
||||
<table><tr class='module-item'><td><a class="mod" href="queries/index.html" title='sim::sim::queries mod'>queries</a></td><td class='docblock-short'><p>All sorts of read-only queries about a simulation</p>
|
||||
</td></tr></table><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
<!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 `SimCallback` trait in crate `sim`."><meta name="keywords" content="rust, rustlang, rust-lang, SimCallback"><title>sim::sim::SimCallback - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</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 SimCallback</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.run">run</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.downcast">downcast</a><a href="#method.downcast_mut">downcast_mut</a><a href="#method.downcast_rc">downcast_rc</a><a href="#method.downcast_ref">downcast_ref</a><a href="#method.is">is</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'>sim</a></p><script>window.sidebarCurrent = {name: 'SimCallback', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/sim/sim/mod.rs.html#1019-1022' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='../index.html'>sim</a>::<wbr><a href='index.html'>sim</a>::<wbr><a class="trait" href=''>SimCallback</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait SimCallback: Downcast {
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/sim/sim/mod.rs.html#1027-1030' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='../index.html'>sim</a>::<wbr><a href='index.html'>sim</a>::<wbr><a class="trait" href=''>SimCallback</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait SimCallback: Downcast {
|
||||
fn <a href='#tymethod.run' class='fnname'>run</a>(&mut self, sim: &<a class="struct" href="../../sim/struct.Sim.html" title="struct sim::Sim">Sim</a>, 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.bool.html">bool</a>;
|
||||
}</pre></div>
|
||||
<h2 id='required-methods' class='small-section-header'>Required methods<a href='#required-methods' class='anchor'></a></h2><div class='methods'><h3 id='tymethod.run' class='method'><code>fn <a href='#tymethod.run' class='fnname'>run</a>(&mut self, sim: &<a class="struct" href="../../sim/struct.Sim.html" title="struct sim::Sim">Sim</a>, 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.bool.html">bool</a></code></h3></div><span class='loading-content'>Loading content...</span><h2 id='implementations' class='small-section-header'>Implementations<a href='#implementations' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl dyn <a class="trait" href="../../sim/sim/trait.SimCallback.html" title="trait sim::sim::SimCallback">SimCallback</a></code><a href='#impl' class='anchor'></a></h3><div class='impl-items'><h4 id='method.is' class="method"><code>pub fn <a href='#method.is' class='fnname'>is</a><__T: <a class="trait" href="../../sim/sim/trait.SimCallback.html" title="trait sim::sim::SimCallback">SimCallback</a>>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></h4><div class='docblock'><p>Returns true if the trait object wraps an object of type <code>__T</code>.</p>
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
<!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 `SimCallback` trait in crate `sim`."><meta name="keywords" content="rust, rustlang, rust-lang, SimCallback"><title>sim::SimCallback - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</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 SimCallback</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.run">run</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.downcast">downcast</a><a href="#method.downcast_mut">downcast_mut</a><a href="#method.downcast_rc">downcast_rc</a><a href="#method.downcast_ref">downcast_ref</a><a href="#method.is">is</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='index.html'>sim</a></p><script>window.sidebarCurrent = {name: 'SimCallback', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/sim/sim/mod.rs.html#1019-1022' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='index.html'>sim</a>::<wbr><a class="trait" href=''>SimCallback</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait SimCallback: Downcast {
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/sim/sim/mod.rs.html#1027-1030' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='index.html'>sim</a>::<wbr><a class="trait" href=''>SimCallback</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait SimCallback: Downcast {
|
||||
fn <a href='#tymethod.run' class='fnname'>run</a>(&mut self, sim: &<a class="struct" href="../sim/struct.Sim.html" title="struct sim::Sim">Sim</a>, 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.bool.html">bool</a>;
|
||||
}</pre></div>
|
||||
<h2 id='required-methods' class='small-section-header'>Required methods<a href='#required-methods' class='anchor'></a></h2><div class='methods'><h3 id='tymethod.run' class='method'><code>fn <a href='#tymethod.run' class='fnname'>run</a>(&mut self, sim: &<a class="struct" href="../sim/struct.Sim.html" title="struct sim::Sim">Sim</a>, 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.bool.html">bool</a></code></h3></div><span class='loading-content'>Loading content...</span><h2 id='implementations' class='small-section-header'>Implementations<a href='#implementations' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl dyn <a class="trait" href="../sim/sim/trait.SimCallback.html" title="trait sim::sim::SimCallback">SimCallback</a></code><a href='#impl' class='anchor'></a></h3><div class='impl-items'><h4 id='method.is' class="method"><code>pub fn <a href='#method.is' class='fnname'>is</a><__T: <a class="trait" href="../sim/sim/trait.SimCallback.html" title="trait sim::sim::SimCallback">SimCallback</a>>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></h4><div class='docblock'><p>Returns true if the trait object wraps an object of type <code>__T</code>.</p>
|
||||
|
@ -865,12 +865,29 @@
|
||||
<span id="864">864</span>
|
||||
<span id="865">865</span>
|
||||
<span id="866">866</span>
|
||||
<span id="867">867</span>
|
||||
<span id="868">868</span>
|
||||
<span id="869">869</span>
|
||||
<span id="870">870</span>
|
||||
<span id="871">871</span>
|
||||
<span id="872">872</span>
|
||||
<span id="873">873</span>
|
||||
<span id="874">874</span>
|
||||
<span id="875">875</span>
|
||||
<span id="876">876</span>
|
||||
<span id="877">877</span>
|
||||
<span id="878">878</span>
|
||||
<span id="879">879</span>
|
||||
<span id="880">880</span>
|
||||
<span id="881">881</span>
|
||||
<span id="882">882</span>
|
||||
<span id="883">883</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::<span class="ident">BTreeSet</span>;
|
||||
|
||||
<span class="kw">use</span> <span class="ident">maplit</span>::<span class="ident">btreeset</span>;
|
||||
|
||||
<span class="kw">use</span> <span class="ident">abstutil</span>::<span class="ident">Timer</span>;
|
||||
<span class="kw">use</span> <span class="ident">abstutil</span>::{<span class="ident">prettyprint_usize</span>, <span class="ident">Timer</span>};
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::<span class="ident">Speed</span>;
|
||||
<span class="kw">use</span> <span class="ident">map_model</span>::{<span class="ident">EditCmd</span>, <span class="ident">IntersectionID</span>, <span class="ident">LaneID</span>, <span class="ident">LaneType</span>, <span class="ident">MapEdits</span>};
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{
|
||||
@ -966,8 +983,25 @@
|
||||
<span class="ident">app</span>.<span class="ident">primary</span>
|
||||
.<span class="ident">sim</span>
|
||||
.<span class="ident">handle_live_edited_traffic_signals</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>);
|
||||
<span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">sim</span>.<span class="ident">handle_live_edits</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>);
|
||||
<span class="ident">Transition</span>::<span class="ident">Pop</span>
|
||||
<span class="kw">let</span> (<span class="ident">trips</span>, <span class="ident">parked_cars</span>) <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">sim</span>.<span class="ident">handle_live_edits</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>);
|
||||
<span class="kw">if</span> <span class="ident">trips</span> <span class="op">==</span> <span class="number">0</span> <span class="op">&&</span> <span class="ident">parked_cars</span> <span class="op">==</span> <span class="number">0</span> {
|
||||
<span class="ident">Transition</span>::<span class="ident">Pop</span>
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">Transition</span>::<span class="ident">Replace</span>(<span class="ident">PopupMsg</span>::<span class="ident">new</span>(
|
||||
<span class="ident">ctx</span>,
|
||||
<span class="string">"Map changes complete"</span>,
|
||||
<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="macro">format</span><span class="macro">!</span>(
|
||||
<span class="string">"Your edits interrupted {} trips and displaced {} parked cars"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">trips</span>),
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">parked_cars</span>)
|
||||
),
|
||||
<span class="string">"Simulation results won't be finalized unless you restart from \
|
||||
midnight with your changes"</span>
|
||||
.<span class="ident">to_string</span>(),
|
||||
],
|
||||
))
|
||||
}
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">Transition</span>::<span class="ident">Multi</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">Transition</span>::<span class="ident">Pop</span>,
|
||||
|
@ -112,7 +112,7 @@
|
||||
<span class="doccomment">/// The output of `rustdoc -V`</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"rustdoc 1.47.0 (18bf6b4f0 2020-10-07)"</span>;
|
||||
<span class="doccomment">/// The built-time in RFC2822, UTC</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"Thu, 22 Oct 2020 18:39:54 +0000"</span>;
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"Thu, 22 Oct 2020 19:14:46 +0000"</span>;
|
||||
<span class="doccomment">/// The target architecture, given by `cfg!(target_arch)`.</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"x86_64"</span>;
|
||||
<span class="doccomment">/// The endianness, given by `cfg!(target_endian)`.</span>
|
||||
|
@ -1036,6 +1036,14 @@
|
||||
<span id="1035">1035</span>
|
||||
<span id="1036">1036</span>
|
||||
<span id="1037">1037</span>
|
||||
<span id="1038">1038</span>
|
||||
<span id="1039">1039</span>
|
||||
<span id="1040">1040</span>
|
||||
<span id="1041">1041</span>
|
||||
<span id="1042">1042</span>
|
||||
<span id="1043">1043</span>
|
||||
<span id="1044">1044</span>
|
||||
<span id="1045">1045</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="comment">// This file has a jumbled mess of queries, setup, and mutating methods.</span>
|
||||
|
||||
@ -1924,10 +1932,13 @@
|
||||
.<span class="ident">handle_live_edited_traffic_signals</span>(<span class="self">self</span>.<span class="ident">time</span>, <span class="ident">map</span>, <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>.<span class="ident">scheduler</span>)
|
||||
}
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">handle_live_edits</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>) {
|
||||
<span class="doccomment">/// Respond to arbitrary map edits without resetting the simulation. Returns the number of</span>
|
||||
<span class="doccomment">/// (trips cancelled, parked cars displaced).</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">handle_live_edits</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>) <span class="op">-></span> (<span class="ident">usize</span>, <span class="ident">usize</span>) {
|
||||
<span class="self">self</span>.<span class="ident">edits_name</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">get_edits</span>().<span class="ident">edits_name</span>.<span class="ident">clone</span>();
|
||||
|
||||
<span class="kw">let</span> <span class="ident">affected</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">find_trips_affected_by_live_edits</span>(<span class="ident">map</span>);
|
||||
<span class="kw">let</span> (<span class="ident">affected</span>, <span class="ident">num_parked_cars</span>) <span class="op">=</span> <span class="self">self</span>.<span class="ident">find_trips_affected_by_live_edits</span>(<span class="ident">map</span>);
|
||||
<span class="kw">let</span> <span class="ident">num_trips_cancelled</span> <span class="op">=</span> <span class="ident">affected</span>.<span class="ident">len</span>();
|
||||
|
||||
<span class="comment">// V1: Just cancel every trip crossing an affected area.</span>
|
||||
<span class="comment">// (V2 is probably rerouting everyone, only cancelling when that fails)</span>
|
||||
@ -1971,9 +1982,12 @@
|
||||
|
||||
<span class="self">self</span>.<span class="ident">driving</span>.<span class="ident">handle_live_edits</span>(<span class="ident">map</span>);
|
||||
<span class="self">self</span>.<span class="ident">intersections</span>.<span class="ident">handle_live_edits</span>(<span class="ident">map</span>);
|
||||
|
||||
(<span class="ident">num_trips_cancelled</span>, <span class="ident">num_parked_cars</span>)
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">find_trips_affected_by_live_edits</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>) <span class="op">-></span> <span class="ident">Vec</span><span class="op"><</span>(<span class="ident">AgentID</span>, <span class="ident">TripID</span>)<span class="op">></span> {
|
||||
<span class="doccomment">/// Returns (trips affected, number of parked cars displaced)</span>
|
||||
<span class="kw">fn</span> <span class="ident">find_trips_affected_by_live_edits</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>) <span class="op">-></span> (<span class="ident">Vec</span><span class="op"><</span>(<span class="ident">AgentID</span>, <span class="ident">TripID</span>)<span class="op">></span>, <span class="ident">usize</span>) {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">affected</span>: <span class="ident">Vec</span><span class="op"><</span>(<span class="ident">AgentID</span>, <span class="ident">TripID</span>)<span class="op">></span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
|
||||
|
||||
<span class="comment">// TODO Handle changes to access restrictions</span>
|
||||
@ -2003,9 +2017,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
<span class="kw">let</span> <span class="ident">num_evicted</span> <span class="op">=</span> {
|
||||
<span class="kw">let</span> (<span class="ident">evicted_cars</span>, <span class="ident">cars_parking_in_the_void</span>) <span class="op">=</span>
|
||||
<span class="self">self</span>.<span class="ident">parking</span>.<span class="ident">handle_live_edits</span>(<span class="ident">map</span>, <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">Timer</span>::<span class="ident">throwaway</span>());
|
||||
<span class="kw">let</span> <span class="ident">num_evicted</span> <span class="op">=</span> <span class="ident">evicted_cars</span>.<span class="ident">len</span>();
|
||||
<span class="ident">affected</span>.<span class="ident">extend</span>(<span class="self">self</span>.<span class="ident">walking</span>.<span class="ident">find_trips_to_parking</span>(<span class="ident">evicted_cars</span>));
|
||||
<span class="kw">for</span> <span class="ident">car</span> <span class="kw">in</span> <span class="ident">cars_parking_in_the_void</span> {
|
||||
<span class="kw">let</span> <span class="ident">a</span> <span class="op">=</span> <span class="ident">AgentID</span>::<span class="ident">Car</span>(<span class="ident">car</span>);
|
||||
@ -2019,9 +2034,10 @@
|
||||
<span class="ident">all_spots</span>.<span class="ident">extend</span>(<span class="ident">avail</span>);
|
||||
<span class="ident">affected</span>.<span class="ident">extend</span>(<span class="self">self</span>.<span class="ident">driving</span>.<span class="ident">find_trips_to_edited_parking</span>(<span class="ident">all_spots</span>));
|
||||
}
|
||||
}
|
||||
<span class="ident">num_evicted</span>
|
||||
};
|
||||
|
||||
<span class="ident">affected</span>
|
||||
(<span class="ident">affected</span>, <span class="ident">num_evicted</span>)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user