mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 09:24:26 +03:00
deploy: 34c45e562b
This commit is contained in:
parent
daed21cede
commit
e9013f7bb8
@ -3,4 +3,4 @@
|
||||
<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 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='../fifteen_min/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Crate fifteen_min</p><div class='block version'><p>Version 0.1.0</p></div><a id='all-types' href='index.html'><p>Back to index</p></a></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>
|
||||
</span>
|
||||
<span class='in-band'>List of all items</span></h1><h3 id='Structs'>Structs</h3><ul class='structs docblock'><li><a href='isochrone/struct.Isochrone.html'>isochrone::Isochrone</a></li><li><a href='viewer/struct.HoverOnBuilding.html'>viewer::HoverOnBuilding</a></li><li><a href='viewer/struct.Viewer.html'>viewer::Viewer</a></li></ul><h3 id='Functions'>Functions</h3><ul class='functions docblock'><li><a href='isochrone/fn.draw_isochrone.html'>isochrone::draw_isochrone</a></li><li><a href='fn.main.html'>main</a></li><li><a href='viewer/fn.build_panel.html'>viewer::build_panel</a></li><li><a href='viewer/fn.draw_star.html'>viewer::draw_star</a></li></ul><h3 id='Typedefs'>Typedefs</h3><ul class='typedefs docblock'><li><a href='type.App.html'>App</a></li><li><a href='viewer/type.HoverKey.html'>viewer::HoverKey</a></li></ul></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "fifteen_min";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
<span class='in-band'>List of all items</span></h1><h3 id='Structs'>Structs</h3><ul class='structs docblock'><li><a href='isochrone/struct.Isochrone.html'>isochrone::Isochrone</a></li><li><a href='viewer/struct.Entry.html'>viewer::Entry</a></li><li><a href='viewer/struct.ExploreAmenities.html'>viewer::ExploreAmenities</a></li><li><a href='viewer/struct.HoverOnBuilding.html'>viewer::HoverOnBuilding</a></li><li><a href='viewer/struct.Viewer.html'>viewer::Viewer</a></li></ul><h3 id='Functions'>Functions</h3><ul class='functions docblock'><li><a href='isochrone/fn.draw_isochrone.html'>isochrone::draw_isochrone</a></li><li><a href='fn.main.html'>main</a></li><li><a href='viewer/fn.build_panel.html'>viewer::build_panel</a></li><li><a href='viewer/fn.draw_star.html'>viewer::draw_star</a></li></ul><h3 id='Typedefs'>Typedefs</h3><ul class='typedefs docblock'><li><a href='type.App.html'>App</a></li><li><a href='viewer/type.HoverKey.html'>viewer::HoverKey</a></li></ul></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "fifteen_min";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!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 `build_panel` fn in crate `fifteen_min`."><meta name="keywords" content="rust, rustlang, rust-lang, build_panel"><title>fifteen_min::viewer::build_panel - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc 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='../../fifteen_min/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'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a></p><script>window.sidebarCurrent = {name: 'build_panel', 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/fifteen_min/viewer.rs.html#183-257' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="fn" href=''>build_panel</a></span></h1><pre class='rust fn'>fn build_panel(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> start: &<a class="struct" href="../../map_model/objects/building/struct.Building.html" title="struct map_model::objects::building::Building">Building</a>, <br> isochrone: &<a class="struct" href="../../fifteen_min/isochrone/struct.Isochrone.html" title="struct fifteen_min::isochrone::Isochrone">Isochrone</a><br>) -> Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "fifteen_min";</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/fifteen_min/viewer.rs.html#175-249' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="fn" href=''>build_panel</a></span></h1><pre class='rust fn'>fn build_panel(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> start: &<a class="struct" href="../../map_model/objects/building/struct.Building.html" title="struct map_model::objects::building::Building">Building</a>, <br> isochrone: &<a class="struct" href="../../fifteen_min/isochrone/struct.Isochrone.html" title="struct fifteen_min::isochrone::Isochrone">Isochrone</a><br>) -> Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "fifteen_min";</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 `draw_star` fn in crate `fifteen_min`."><meta name="keywords" content="rust, rustlang, rust-lang, draw_star"><title>fifteen_min::viewer::draw_star - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc 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='../../fifteen_min/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'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a></p><script>window.sidebarCurrent = {name: 'draw_star', 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/fifteen_min/viewer.rs.html#175-181' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="fn" href=''>draw_star</a></span></h1><pre class='rust fn'>fn draw_star(ctx: &mut EventCtx<'_>, center: <a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>) -> Drawable</pre><div class='docblock'><p>Draw a star on the start building.</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/fifteen_min/viewer.rs.html#167-173' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="fn" href=''>draw_star</a></span></h1><pre class='rust fn'>fn draw_star(ctx: &mut EventCtx<'_>, center: <a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>) -> Drawable</pre><div class='docblock'><p>Draw a star on the start building.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "fifteen_min";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,12 +1,12 @@
|
||||
<!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 `viewer` mod in crate `fifteen_min`."><meta name="keywords" content="rust, rustlang, rust-lang, viewer"><title>fifteen_min::viewer - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc 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='../../fifteen_min/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module viewer</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li><li><a href="#types">Type Definitions</a></li></ul></div><p class='location'><a href='../index.html'>fifteen_min</a></p><script>window.sidebarCurrent = {name: 'viewer', 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/fifteen_min/viewer.rs.html#1-312' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>fifteen_min</a>::<wbr><a class="mod" href=''>viewer</a></span></h1><div class='docblock'><p>This is a tool to experiment with the concept of 15-minute neighborhoods. Can you access your
|
||||
<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/fifteen_min/viewer.rs.html#1-434' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>fifteen_min</a>::<wbr><a class="mod" href=''>viewer</a></span></h1><div class='docblock'><p>This is a tool to experiment with the concept of 15-minute neighborhoods. Can you access your
|
||||
daily needs (like groceries, a cafe, a library) within a 15-minute walk, bike ride, or public
|
||||
transit ride of your home?</p>
|
||||
<p>See https://github.com/dabreegster/abstreet/issues/393 for more context.</p>
|
||||
</div><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.HoverOnBuilding.html" title='fifteen_min::viewer::HoverOnBuilding struct'>HoverOnBuilding</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Viewer.html" title='fifteen_min::viewer::Viewer struct'>Viewer</a></td><td class='docblock-short'><p>This is the UI state for exploring the isochrone/walkshed from a single building.</p>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.Entry.html" title='fifteen_min::viewer::Entry struct'>Entry</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.ExploreAmenities.html" title='fifteen_min::viewer::ExploreAmenities struct'>ExploreAmenities</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.HoverOnBuilding.html" title='fifteen_min::viewer::HoverOnBuilding struct'>HoverOnBuilding</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Viewer.html" title='fifteen_min::viewer::Viewer struct'>Viewer</a></td><td class='docblock-short'><p>This is the UI state for exploring the isochrone/walkshed from a single building.</p>
|
||||
</td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||
<table><tr class='module-item'><td><a class="fn" href="fn.build_panel.html" title='fifteen_min::viewer::build_panel fn'>build_panel</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.draw_star.html" title='fifteen_min::viewer::draw_star fn'>draw_star</a></td><td class='docblock-short'><p>Draw a star on the start building.</p>
|
||||
</td></tr></table><h2 id='types' class='section-header'><a href="#types">Type Definitions</a></h2>
|
||||
|
@ -1 +1 @@
|
||||
initSidebarItems({"fn":[["build_panel",""],["draw_star","Draw a star on the start building."]],"struct":[["HoverOnBuilding",""],["Viewer","This is the UI state for exploring the isochrone/walkshed from a single building."]],"type":[["HoverKey","(building, scale factor)"]]});
|
||||
initSidebarItems({"fn":[["build_panel",""],["draw_star","Draw a star on the start building."]],"struct":[["Entry",""],["ExploreAmenities",""],["HoverOnBuilding",""],["Viewer","This is the UI state for exploring the isochrone/walkshed from a single building."]],"type":[["HoverKey","(building, scale factor)"]]});
|
39
rustdoc/fifteen_min/viewer/struct.Entry.html
Normal file
39
rustdoc/fifteen_min/viewer/struct.Entry.html
Normal file
File diff suppressed because one or more lines are too long
39
rustdoc/fifteen_min/viewer/struct.ExploreAmenities.html
Normal file
39
rustdoc/fifteen_min/viewer/struct.ExploreAmenities.html
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,16 +1,16 @@
|
||||
<!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 `Viewer` struct in crate `fifteen_min`."><meta name="keywords" content="rust, rustlang, rust-lang, Viewer"><title>fifteen_min::viewer::Viewer - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[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='../../fifteen_min/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Viewer</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.highlight_start">highlight_start</a><a href="#structfield.hovering_on_bldg">hovering_on_bldg</a><a href="#structfield.isochrone">isochrone</a><a href="#structfield.panel">panel</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.new">new</a><a href="#method.random_start">random_start</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-State%3CSimpleApp%3C()%3E%3E">State<SimpleApp<()>></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">!UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a></p><script>window.sidebarCurrent = {name: 'Viewer', ty: 'struct', 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/fifteen_min/viewer.rs.html#22-28' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="struct" href=''>Viewer</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct Viewer {
|
||||
<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/fifteen_min/viewer.rs.html#25-31' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="struct" href=''>Viewer</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct Viewer {
|
||||
panel: Panel,
|
||||
highlight_start: Drawable,
|
||||
isochrone: <a class="struct" href="../../fifteen_min/isochrone/struct.Isochrone.html" title="struct fifteen_min::isochrone::Isochrone">Isochrone</a>,
|
||||
hovering_on_bldg: <a class="struct" href="../../map_gui/simple_app/struct.Cached.html" title="struct map_gui::simple_app::Cached">Cached</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>, <a class="struct" href="../../fifteen_min/viewer/struct.HoverOnBuilding.html" title="struct fifteen_min::viewer::HoverOnBuilding">HoverOnBuilding</a>>,
|
||||
}</pre></div><div class='docblock'><p>This is the UI state for exploring the isochrone/walkshed from a single building.</p>
|
||||
</div><h2 id='fields' class='fields small-section-header'>
|
||||
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.highlight_start" class="structfield small-section-header"><a href="#structfield.highlight_start" class="anchor field"></a><code>highlight_start: Drawable</code></span><span id="structfield.isochrone" class="structfield small-section-header"><a href="#structfield.isochrone" class="anchor field"></a><code>isochrone: <a class="struct" href="../../fifteen_min/isochrone/struct.Isochrone.html" title="struct fifteen_min::isochrone::Isochrone">Isochrone</a></code></span><span id="structfield.hovering_on_bldg" class="structfield small-section-header"><a href="#structfield.hovering_on_bldg" class="anchor field"></a><code>hovering_on_bldg: <a class="struct" href="../../map_gui/simple_app/struct.Cached.html" title="struct map_gui::simple_app::Cached">Cached</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>, <a class="struct" href="../../fifteen_min/viewer/struct.HoverOnBuilding.html" title="struct fifteen_min::viewer::HoverOnBuilding">HoverOnBuilding</a>></code></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 <a class="struct" href="../../fifteen_min/viewer/struct.Viewer.html" title="struct fifteen_min::viewer::Viewer">Viewer</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#30-52' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.random_start' class="method"><code>pub fn <a href='#method.random_start' class='fnname'>random_start</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>>></code><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#32-36' title='goto source code'>[src]</a></h4><div class='docblock'><p>Start with a random building</p>
|
||||
</div><h4 id='method.new' class="method"><code>pub fn <a href='#method.new' class='fnname'>new</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> start: <a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>>></code><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#38-51' title='goto source code'>[src]</a></h4></div><h2 id='trait-implementations' class='small-section-header'>Trait Implementations<a href='#trait-implementations' class='anchor'></a></h2><div id='trait-implementations-list'><h3 id='impl-State%3CSimpleApp%3C()%3E%3E' class='impl'><code class='in-band'>impl State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>> for <a class="struct" href="../../fifteen_min/viewer/struct.Viewer.html" title="struct fifteen_min::viewer::Viewer">Viewer</a></code><a href='#impl-State%3CSimpleApp%3C()%3E%3E' class='anchor'></a><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#54-172' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.event' class="method hidden"><code>fn <a href='#method.event' class='fnname'>event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>><br>) -> Transition<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>></code><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#55-161' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id='method.draw' class="method hidden"><code>fn <a href='#method.draw' class='fnname'>draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>)</code><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#163-171' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.highlight_start" class="structfield small-section-header"><a href="#structfield.highlight_start" class="anchor field"></a><code>highlight_start: Drawable</code></span><span id="structfield.isochrone" class="structfield small-section-header"><a href="#structfield.isochrone" class="anchor field"></a><code>isochrone: <a class="struct" href="../../fifteen_min/isochrone/struct.Isochrone.html" title="struct fifteen_min::isochrone::Isochrone">Isochrone</a></code></span><span id="structfield.hovering_on_bldg" class="structfield small-section-header"><a href="#structfield.hovering_on_bldg" class="anchor field"></a><code>hovering_on_bldg: <a class="struct" href="../../map_gui/simple_app/struct.Cached.html" title="struct map_gui::simple_app::Cached">Cached</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>, <a class="struct" href="../../fifteen_min/viewer/struct.HoverOnBuilding.html" title="struct fifteen_min::viewer::HoverOnBuilding">HoverOnBuilding</a>></code></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 <a class="struct" href="../../fifteen_min/viewer/struct.Viewer.html" title="struct fifteen_min::viewer::Viewer">Viewer</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#33-55' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.random_start' class="method"><code>pub fn <a href='#method.random_start' class='fnname'>random_start</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>>></code><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#35-39' title='goto source code'>[src]</a></h4><div class='docblock'><p>Start with a random building</p>
|
||||
</div><h4 id='method.new' class="method"><code>pub fn <a href='#method.new' class='fnname'>new</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> start: <a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>>></code><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#41-54' title='goto source code'>[src]</a></h4></div><h2 id='trait-implementations' class='small-section-header'>Trait Implementations<a href='#trait-implementations' class='anchor'></a></h2><div id='trait-implementations-list'><h3 id='impl-State%3CSimpleApp%3C()%3E%3E' class='impl'><code class='in-band'>impl State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>> for <a class="struct" href="../../fifteen_min/viewer/struct.Viewer.html" title="struct fifteen_min::viewer::Viewer">Viewer</a></code><a href='#impl-State%3CSimpleApp%3C()%3E%3E' class='anchor'></a><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#57-164' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.event' class="method hidden"><code>fn <a href='#method.event' class='fnname'>event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>><br>) -> Transition<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>></code><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#58-153' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id='method.draw' class="method hidden"><code>fn <a href='#method.draw' class='fnname'>draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>)</code><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#155-163' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id='method.draw_baselayer' class="method hidden"><code>fn <a href='#method.draw_baselayer' class='fnname'>draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id='method.on_destroy' class="method hidden"><code>fn <a href='#method.on_destroy' class='fnname'>on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../fifteen_min/viewer/struct.Viewer.html" title="struct fifteen_min::viewer::Viewer">Viewer</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../fifteen_min/viewer/struct.Viewer.html" title="struct fifteen_min::viewer::Viewer">Viewer</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../fifteen_min/viewer/struct.Viewer.html" title="struct fifteen_min::viewer::Viewer">Viewer</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../fifteen_min/viewer/struct.Viewer.html" title="struct fifteen_min::viewer::Viewer">Viewer</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../fifteen_min/viewer/struct.Viewer.html" title="struct fifteen_min::viewer::Viewer">Viewer</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
|
@ -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 `HoverKey` type in crate `fifteen_min`."><meta name="keywords" content="rust, rustlang, rust-lang, HoverKey"><title>fifteen_min::viewer::HoverKey - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc type"><!--[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='../../fifteen_min/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Type Definition HoverKey</p><div class="sidebar-elems"><p class='location'><a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a></p><script>window.sidebarCurrent = {name: 'HoverKey', ty: 'type', 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/fifteen_min/viewer.rs.html#264' title='goto source code'>[src]</a></span><span class='in-band'>Type Definition <a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="type" href=''>HoverKey</a></span></h1><pre class='rust typedef'>type HoverKey = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>;</pre><div class='docblock'><p>(building, scale factor)</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/fifteen_min/viewer.rs.html#256' title='goto source code'>[src]</a></span><span class='in-band'>Type Definition <a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="type" href=''>HoverKey</a></span></h1><pre class='rust typedef'>type HoverKey = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>;</pre><div class='docblock'><p>(building, scale factor)</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "fifteen_min";</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 `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="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 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-c1f324f9d3d7e3b2/out/built.rs.html#53' 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> = "Sun, 20 Dec 2020 00:22:23 +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-c1f324f9d3d7e3b2/out/built.rs.html#53' 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> = "Sun, 20 Dec 2020 00:59:51 +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
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,5 +1,5 @@
|
||||
(function() {var implementors = {};
|
||||
implementors["fifteen_min"] = [{"text":"impl State<SimpleApp<()>> for Viewer","synthetic":false,"types":[]}];
|
||||
implementors["fifteen_min"] = [{"text":"impl State<SimpleApp<()>> for Viewer","synthetic":false,"types":[]},{"text":"impl State<SimpleApp<()>> for ExploreAmenities","synthetic":false,"types":[]}];
|
||||
implementors["game"] = [{"text":"impl State<App> for CutscenePlayer","synthetic":false,"types":[]},{"text":"impl State<App> for FYI","synthetic":false,"types":[]},{"text":"impl State<App> for ChallengesPicker","synthetic":false,"types":[]},{"text":"impl State<App> for Warping","synthetic":false,"types":[]},{"text":"impl State<App> for DebugWarp","synthetic":false,"types":[]},{"text":"impl State<App> for Viewer","synthetic":false,"types":[]},{"text":"impl State<App> for Floodfiller","synthetic":false,"types":[]},{"text":"impl State<App> for PathCounter","synthetic":false,"types":[]},{"text":"impl State<App> for PolygonDebugger","synthetic":false,"types":[]},{"text":"impl State<App> for DebugMode","synthetic":false,"types":[]},{"text":"impl State<App> for ScreenshotTest","synthetic":false,"types":[]},{"text":"impl State<App> for CollisionsViewer","synthetic":false,"types":[]},{"text":"impl State<App> for PopularDestinations","synthetic":false,"types":[]},{"text":"impl State<App> for ViewKML","synthetic":false,"types":[]},{"text":"impl State<App> for PolygonEditor","synthetic":false,"types":[]},{"text":"impl State<App> for ScenarioManager","synthetic":false,"types":[]},{"text":"impl State<App> for StoryMapEditor","synthetic":false,"types":[]},{"text":"impl State<App> for DevToolsMode","synthetic":false,"types":[]},{"text":"impl State<App> for BulkSelect","synthetic":false,"types":[]},{"text":"impl State<App> for BulkEdit","synthetic":false,"types":[]},{"text":"impl State<App> for ClusterTrafficSignalEditor","synthetic":false,"types":[]},{"text":"impl State<App> for RouteEditor","synthetic":false,"types":[]},{"text":"impl State<App> for SignalPicker","synthetic":false,"types":[]},{"text":"impl State<App> for PreviewTrafficSignal","synthetic":false,"types":[]},{"text":"impl State<App> for TrafficSignalEditor","synthetic":false,"types":[]},{"text":"impl State<App> for ZoneEditor","synthetic":false,"types":[]},{"text":"impl State<App> for EditMode","synthetic":false,"types":[]},{"text":"impl State<App> for SaveEdits","synthetic":false,"types":[]},{"text":"impl State<App> for LoadEdits","synthetic":false,"types":[]},{"text":"impl State<App> for ConfirmDiscard","synthetic":false,"types":[]},{"text":"impl State<App> for PickLayer","synthetic":false,"types":[]},{"text":"impl State<App> for TitleScreen","synthetic":false,"types":[]},{"text":"impl State<App> for MainMenu","synthetic":false,"types":[]},{"text":"impl State<App> for About","synthetic":false,"types":[]},{"text":"impl State<App> for Proposals","synthetic":false,"types":[]},{"text":"impl State<App> for CommuterPatterns","synthetic":false,"types":[]},{"text":"impl<T: 'static, F: 'static, P: 'static + Fn(&mut EventCtx<'_>, &App, &Table<App, T, F>) -> Panel> State<App> for GenericTripTable<T, F, P>","synthetic":false,"types":[]},{"text":"impl State<App> for ActiveTraffic","synthetic":false,"types":[]},{"text":"impl State<App> for TransitRoutes","synthetic":false,"types":[]},{"text":"impl State<App> for TripSummaries","synthetic":false,"types":[]},{"text":"impl State<App> for TrafficSignalDemand","synthetic":false,"types":[]},{"text":"impl State<App> for AgentSpawner","synthetic":false,"types":[]},{"text":"impl State<App> for EditScenarioModifiers","synthetic":false,"types":[]},{"text":"impl State<App> for ChangeMode","synthetic":false,"types":[]},{"text":"impl State<App> for FinalScore","synthetic":false,"types":[]},{"text":"impl State<App> for TrafficRecorder","synthetic":false,"types":[]},{"text":"impl State<App> for JumpToTime","synthetic":false,"types":[]},{"text":"impl State<App> for JumpToDelay","synthetic":false,"types":[]},{"text":"impl State<App> for TimeWarpScreen","synthetic":false,"types":[]},{"text":"impl State<App> for SandboxMode","synthetic":false,"types":[]},{"text":"impl State<App> for BackToMainMenu","synthetic":false,"types":[]},{"text":"impl State<App> for SandboxLoader","synthetic":false,"types":[]}];
|
||||
implementors["map_editor"] = [{"text":"impl State<App> for MainState","synthetic":false,"types":[]}];
|
||||
implementors["map_gui"] = [{"text":"impl<A: AppLike + 'static> State<A> for MapAlreadyLoaded<A>","synthetic":false,"types":[]},{"text":"impl<A: AppLike + 'static, T: 'static + DeserializeOwned> State<A> for FileLoader<A, T>","synthetic":false,"types":[]},{"text":"impl<A: AppLike> State<A> for OptionsPanel","synthetic":false,"types":[]},{"text":"impl<T> State<SimpleApp<T>> for SimpleWarper","synthetic":false,"types":[]},{"text":"impl<A: AppLike + 'static> State<A> for CityPicker<A>","synthetic":false,"types":[]},{"text":"impl<A: AppLike + 'static> State<A> for AllCityPicker<A>","synthetic":false,"types":[]},{"text":"impl<A: AppLike + 'static> State<A> for Navigator","synthetic":false,"types":[]},{"text":"impl<A: AppLike + 'static> State<A> for CrossStreet","synthetic":false,"types":[]},{"text":"impl<A: AppLike + 'static> State<A> for SearchBuildings","synthetic":false,"types":[]},{"text":"impl<A: AppLike + 'static> State<A> for TurnExplorer","synthetic":false,"types":[]},{"text":"impl<A: AppLike + 'static, T: 'static> State<A> for ChooseSomething<A, T>","synthetic":false,"types":[]},{"text":"impl<A: AppLike + 'static> State<A> for PromptInput<A>","synthetic":false,"types":[]},{"text":"impl<A: AppLike> State<A> for PopupMsg","synthetic":false,"types":[]},{"text":"impl<A: AppLike + 'static> State<A> for Picker<A>","synthetic":false,"types":[]}];
|
||||
|
File diff suppressed because one or more lines are too long
@ -313,6 +313,128 @@
|
||||
<span id="310">310</span>
|
||||
<span id="311">311</span>
|
||||
<span id="312">312</span>
|
||||
<span id="313">313</span>
|
||||
<span id="314">314</span>
|
||||
<span id="315">315</span>
|
||||
<span id="316">316</span>
|
||||
<span id="317">317</span>
|
||||
<span id="318">318</span>
|
||||
<span id="319">319</span>
|
||||
<span id="320">320</span>
|
||||
<span id="321">321</span>
|
||||
<span id="322">322</span>
|
||||
<span id="323">323</span>
|
||||
<span id="324">324</span>
|
||||
<span id="325">325</span>
|
||||
<span id="326">326</span>
|
||||
<span id="327">327</span>
|
||||
<span id="328">328</span>
|
||||
<span id="329">329</span>
|
||||
<span id="330">330</span>
|
||||
<span id="331">331</span>
|
||||
<span id="332">332</span>
|
||||
<span id="333">333</span>
|
||||
<span id="334">334</span>
|
||||
<span id="335">335</span>
|
||||
<span id="336">336</span>
|
||||
<span id="337">337</span>
|
||||
<span id="338">338</span>
|
||||
<span id="339">339</span>
|
||||
<span id="340">340</span>
|
||||
<span id="341">341</span>
|
||||
<span id="342">342</span>
|
||||
<span id="343">343</span>
|
||||
<span id="344">344</span>
|
||||
<span id="345">345</span>
|
||||
<span id="346">346</span>
|
||||
<span id="347">347</span>
|
||||
<span id="348">348</span>
|
||||
<span id="349">349</span>
|
||||
<span id="350">350</span>
|
||||
<span id="351">351</span>
|
||||
<span id="352">352</span>
|
||||
<span id="353">353</span>
|
||||
<span id="354">354</span>
|
||||
<span id="355">355</span>
|
||||
<span id="356">356</span>
|
||||
<span id="357">357</span>
|
||||
<span id="358">358</span>
|
||||
<span id="359">359</span>
|
||||
<span id="360">360</span>
|
||||
<span id="361">361</span>
|
||||
<span id="362">362</span>
|
||||
<span id="363">363</span>
|
||||
<span id="364">364</span>
|
||||
<span id="365">365</span>
|
||||
<span id="366">366</span>
|
||||
<span id="367">367</span>
|
||||
<span id="368">368</span>
|
||||
<span id="369">369</span>
|
||||
<span id="370">370</span>
|
||||
<span id="371">371</span>
|
||||
<span id="372">372</span>
|
||||
<span id="373">373</span>
|
||||
<span id="374">374</span>
|
||||
<span id="375">375</span>
|
||||
<span id="376">376</span>
|
||||
<span id="377">377</span>
|
||||
<span id="378">378</span>
|
||||
<span id="379">379</span>
|
||||
<span id="380">380</span>
|
||||
<span id="381">381</span>
|
||||
<span id="382">382</span>
|
||||
<span id="383">383</span>
|
||||
<span id="384">384</span>
|
||||
<span id="385">385</span>
|
||||
<span id="386">386</span>
|
||||
<span id="387">387</span>
|
||||
<span id="388">388</span>
|
||||
<span id="389">389</span>
|
||||
<span id="390">390</span>
|
||||
<span id="391">391</span>
|
||||
<span id="392">392</span>
|
||||
<span id="393">393</span>
|
||||
<span id="394">394</span>
|
||||
<span id="395">395</span>
|
||||
<span id="396">396</span>
|
||||
<span id="397">397</span>
|
||||
<span id="398">398</span>
|
||||
<span id="399">399</span>
|
||||
<span id="400">400</span>
|
||||
<span id="401">401</span>
|
||||
<span id="402">402</span>
|
||||
<span id="403">403</span>
|
||||
<span id="404">404</span>
|
||||
<span id="405">405</span>
|
||||
<span id="406">406</span>
|
||||
<span id="407">407</span>
|
||||
<span id="408">408</span>
|
||||
<span id="409">409</span>
|
||||
<span id="410">410</span>
|
||||
<span id="411">411</span>
|
||||
<span id="412">412</span>
|
||||
<span id="413">413</span>
|
||||
<span id="414">414</span>
|
||||
<span id="415">415</span>
|
||||
<span id="416">416</span>
|
||||
<span id="417">417</span>
|
||||
<span id="418">418</span>
|
||||
<span id="419">419</span>
|
||||
<span id="420">420</span>
|
||||
<span id="421">421</span>
|
||||
<span id="422">422</span>
|
||||
<span id="423">423</span>
|
||||
<span id="424">424</span>
|
||||
<span id="425">425</span>
|
||||
<span id="426">426</span>
|
||||
<span id="427">427</span>
|
||||
<span id="428">428</span>
|
||||
<span id="429">429</span>
|
||||
<span id="430">430</span>
|
||||
<span id="431">431</span>
|
||||
<span id="432">432</span>
|
||||
<span id="433">433</span>
|
||||
<span id="434">434</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="doccomment">//! This is a tool to experiment with the concept of 15-minute neighborhoods. Can you access your</span>
|
||||
<span class="doccomment">//! daily needs (like groceries, a cafe, a library) within a 15-minute walk, bike ride, or public</span>
|
||||
@ -321,14 +443,17 @@
|
||||
<span class="doccomment">//! See https://github.com/dabreegster/abstreet/issues/393 for more context.</span>
|
||||
|
||||
<span class="kw">use</span> <span class="ident">abstutil</span>::<span class="ident">prettyprint_usize</span>;
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Distance</span>, <span class="ident">Pt2D</span>};
|
||||
<span class="kw">use</span> <span class="ident">map_gui</span>::<span class="ident">tools</span>::{<span class="ident">amenity_type</span>, <span class="ident">nice_map_name</span>, <span class="ident">CityPicker</span>, <span class="ident">ColorLegend</span>, <span class="ident">PopupMsg</span>};
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Distance</span>, <span class="ident">Duration</span>, <span class="ident">Pt2D</span>};
|
||||
<span class="kw">use</span> <span class="ident">map_gui</span>::<span class="ident">tools</span>::{
|
||||
<span class="ident">amenity_type</span>, <span class="ident">nice_map_name</span>, <span class="ident">open_browser</span>, <span class="ident">CityPicker</span>, <span class="ident">ColorLegend</span>, <span class="ident">PopupMsg</span>,
|
||||
};
|
||||
<span class="kw">use</span> <span class="ident">map_gui</span>::{<span class="ident">Cached</span>, <span class="ident">ID</span>};
|
||||
<span class="kw">use</span> <span class="ident">map_model</span>::{<span class="ident">Building</span>, <span class="ident">BuildingID</span>, <span class="ident">PathConstraints</span>};
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::<span class="ident">table</span>::{<span class="ident">Col</span>, <span class="ident">Filter</span>, <span class="ident">Table</span>};
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{
|
||||
<span class="ident">lctrl</span>, <span class="ident">Btn</span>, <span class="ident">Checkbox</span>, <span class="ident">Color</span>, <span class="ident">Drawable</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</span>, <span class="ident">GfxCtx</span>, <span class="ident">HorizontalAlignment</span>, <span class="ident">Key</span>,
|
||||
<span class="ident">Line</span>, <span class="ident">Outcome</span>, <span class="ident">Panel</span>, <span class="ident">RewriteColor</span>, <span class="ident">State</span>, <span class="ident">Text</span>, <span class="ident">TextExt</span>, <span class="ident">Transition</span>, <span class="ident">VerticalAlignment</span>,
|
||||
<span class="ident">Widget</span>,
|
||||
<span class="ident">lctrl</span>, <span class="ident">Btn</span>, <span class="ident">Checkbox</span>, <span class="ident">Color</span>, <span class="ident">DrawBaselayer</span>, <span class="ident">Drawable</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</span>, <span class="ident">GfxCtx</span>,
|
||||
<span class="ident">HorizontalAlignment</span>, <span class="ident">Key</span>, <span class="ident">Line</span>, <span class="ident">Outcome</span>, <span class="ident">Panel</span>, <span class="ident">RewriteColor</span>, <span class="ident">State</span>, <span class="ident">Text</span>, <span class="ident">TextExt</span>, <span class="ident">Transition</span>,
|
||||
<span class="ident">VerticalAlignment</span>, <span class="ident">Widget</span>,
|
||||
};
|
||||
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">isochrone</span>::<span class="ident">Isochrone</span>;
|
||||
@ -437,23 +562,12 @@
|
||||
}
|
||||
<span class="comment">// If we reach here, we must've clicked one of the buttons for an amenity</span>
|
||||
<span class="ident">category</span> <span class="op">=</span><span class="op">></span> {
|
||||
<span class="comment">// Describe all of the specific amenities matching this category</span>
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">details</span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
|
||||
<span class="comment">// Category, name, address, distance away (sort by this by default)</span>
|
||||
<span class="kw">for</span> <span class="ident">b</span> <span class="kw">in</span> <span class="self">self</span>.<span class="ident">isochrone</span>.<span class="ident">amenities_reachable</span>.<span class="ident">get</span>(<span class="ident">category</span>) {
|
||||
<span class="kw">let</span> <span class="ident">bldg</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">map</span>.<span class="ident">get_b</span>(<span class="kw-2">*</span><span class="ident">b</span>);
|
||||
<span class="kw">for</span> <span class="ident">amenity</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">bldg</span>.<span class="ident">amenities</span> {
|
||||
<span class="kw">if</span> <span class="ident">amenity_type</span>(<span class="kw-2">&</span><span class="ident">amenity</span>.<span class="ident">amenity_type</span>) <span class="op">=</span><span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">category</span>) {
|
||||
<span class="ident">details</span>.<span class="ident">push</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||
<span class="string">"{} ({} away) has {}"</span>,
|
||||
<span class="ident">bldg</span>.<span class="ident">address</span>,
|
||||
<span class="self">self</span>.<span class="ident">isochrone</span>.<span class="ident">time_to_reach_building</span>[<span class="kw-2">&</span><span class="ident">bldg</span>.<span class="ident">id</span>],
|
||||
<span class="ident">amenity</span>.<span class="ident">names</span>.<span class="ident">get</span>(<span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">language</span>.<span class="ident">as_ref</span>())
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
<span class="kw">return</span> <span class="ident">Transition</span>::<span class="ident">Push</span>(<span class="ident">PopupMsg</span>::<span class="ident">new</span>(<span class="ident">ctx</span>, <span class="ident">category</span>, <span class="ident">details</span>));
|
||||
<span class="kw">return</span> <span class="ident">Transition</span>::<span class="ident">Push</span>(<span class="ident">ExploreAmenities</span>::<span class="ident">new</span>(
|
||||
<span class="ident">ctx</span>,
|
||||
<span class="ident">app</span>,
|
||||
<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">isochrone</span>,
|
||||
<span class="ident">category</span>,
|
||||
));
|
||||
}
|
||||
},
|
||||
<span class="ident">Outcome</span>::<span class="ident">Changed</span> <span class="op">=</span><span class="op">></span> {
|
||||
@ -626,5 +740,135 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">struct</span> <span class="ident">ExploreAmenities</span> {
|
||||
<span class="ident">category</span>: <span class="ident">String</span>,
|
||||
<span class="ident">table</span>: <span class="ident">Table</span><span class="op"><</span><span class="ident">App</span>, <span class="ident">Entry</span>, ()<span class="op">></span>,
|
||||
<span class="ident">panel</span>: <span class="ident">Panel</span>,
|
||||
}
|
||||
|
||||
<span class="kw">struct</span> <span class="ident">Entry</span> {
|
||||
<span class="ident">bldg</span>: <span class="ident">BuildingID</span>,
|
||||
<span class="ident">name</span>: <span class="ident">String</span>,
|
||||
<span class="ident">category</span>: <span class="ident">String</span>,
|
||||
<span class="ident">address</span>: <span class="ident">String</span>,
|
||||
<span class="ident">duration_away</span>: <span class="ident">Duration</span>,
|
||||
}
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">ExploreAmenities</span> {
|
||||
<span class="kw">fn</span> <span class="ident">new</span>(
|
||||
<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>,
|
||||
<span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>,
|
||||
<span class="ident">isochrone</span>: <span class="kw-2">&</span><span class="ident">Isochrone</span>,
|
||||
<span class="ident">category</span>: <span class="kw-2">&</span><span class="ident">str</span>,
|
||||
) <span class="op">-</span><span class="op">></span> <span class="ident">Box</span><span class="op"><</span><span class="ident">dyn</span> <span class="ident">State</span><span class="op"><</span><span class="ident">App</span><span class="op">></span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">entries</span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
|
||||
<span class="kw">for</span> <span class="ident">b</span> <span class="kw">in</span> <span class="ident">isochrone</span>.<span class="ident">amenities_reachable</span>.<span class="ident">get</span>(<span class="ident">category</span>) {
|
||||
<span class="kw">let</span> <span class="ident">bldg</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">map</span>.<span class="ident">get_b</span>(<span class="kw-2">*</span><span class="ident">b</span>);
|
||||
<span class="kw">for</span> <span class="ident">amenity</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">bldg</span>.<span class="ident">amenities</span> {
|
||||
<span class="kw">if</span> <span class="ident">amenity_type</span>(<span class="kw-2">&</span><span class="ident">amenity</span>.<span class="ident">amenity_type</span>) <span class="op">=</span><span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">category</span>) {
|
||||
<span class="ident">entries</span>.<span class="ident">push</span>(<span class="ident">Entry</span> {
|
||||
<span class="ident">bldg</span>: <span class="ident">bldg</span>.<span class="ident">id</span>,
|
||||
<span class="ident">name</span>: <span class="ident">amenity</span>.<span class="ident">names</span>.<span class="ident">get</span>(<span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">language</span>.<span class="ident">as_ref</span>()).<span class="ident">to_string</span>(),
|
||||
<span class="ident">category</span>: <span class="ident">amenity</span>.<span class="ident">amenity_type</span>.<span class="ident">clone</span>(),
|
||||
<span class="ident">address</span>: <span class="ident">bldg</span>.<span class="ident">address</span>.<span class="ident">clone</span>(),
|
||||
<span class="ident">duration_away</span>: <span class="ident">isochrone</span>.<span class="ident">time_to_reach_building</span>[<span class="kw-2">&</span><span class="ident">bldg</span>.<span class="ident">id</span>],
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">table</span>: <span class="ident">Table</span><span class="op"><</span><span class="ident">App</span>, <span class="ident">Entry</span>, ()<span class="op">></span> <span class="op">=</span> <span class="ident">Table</span>::<span class="ident">new</span>(
|
||||
<span class="ident">entries</span>,
|
||||
<span class="comment">// The label has extra junk to avoid crashing when one building has two stores</span>
|
||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="macro">format</span><span class="macro">!</span>(<span class="string">"{}: {}"</span>, <span class="ident">x</span>.<span class="ident">bldg</span>.<span class="number">0</span>, <span class="ident">x</span>.<span class="ident">name</span>)),
|
||||
<span class="string">"Time to reach"</span>,
|
||||
<span class="ident">Filter</span>::<span class="ident">empty</span>(),
|
||||
);
|
||||
<span class="ident">table</span>.<span class="ident">column</span>(
|
||||
<span class="string">"Category"</span>,
|
||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="kw">_</span>, <span class="ident">x</span><span class="op">|</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="kw-2">&</span><span class="ident">x</span>.<span class="ident">category</span>)).<span class="ident">render</span>(<span class="ident">ctx</span>)),
|
||||
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">category</span>.<span class="ident">clone</span>()))),
|
||||
);
|
||||
<span class="ident">table</span>.<span class="ident">static_col</span>(<span class="string">"Name"</span>, <span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">name</span>.<span class="ident">clone</span>()));
|
||||
<span class="ident">table</span>.<span class="ident">static_col</span>(<span class="string">"Address"</span>, <span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">address</span>.<span class="ident">clone</span>()));
|
||||
<span class="ident">table</span>.<span class="ident">column</span>(
|
||||
<span class="string">"Time to reach"</span>,
|
||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">x</span><span class="op">|</span> {
|
||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">x</span>.<span class="ident">duration_away</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>))).<span class="ident">render</span>(<span class="ident">ctx</span>)
|
||||
}),
|
||||
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">duration_away</span>))),
|
||||
);
|
||||
|
||||
<span class="kw">let</span> <span class="ident">panel</span> <span class="op">=</span> <span class="ident">Panel</span>::<span class="ident">new</span>(<span class="ident">Widget</span>::<span class="ident">col</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">Widget</span>::<span class="ident">row</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} within 15 minutes"</span>, <span class="ident">category</span>))
|
||||
.<span class="ident">small_heading</span>()
|
||||
.<span class="ident">draw</span>(<span class="ident">ctx</span>),
|
||||
<span class="ident">Btn</span>::<span class="ident">close</span>(<span class="ident">ctx</span>),
|
||||
]),
|
||||
<span class="ident">table</span>.<span class="ident">render</span>(<span class="ident">ctx</span>, <span class="ident">app</span>),
|
||||
]))
|
||||
.<span class="ident">build</span>(<span class="ident">ctx</span>);
|
||||
|
||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">ExploreAmenities</span> {
|
||||
<span class="ident">category</span>: <span class="ident">category</span>.<span class="ident">to_string</span>(),
|
||||
<span class="ident">table</span>,
|
||||
<span class="ident">panel</span>,
|
||||
})
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">recalc</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>) {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">new</span> <span class="op">=</span> <span class="ident">Panel</span>::<span class="ident">new</span>(<span class="ident">Widget</span>::<span class="ident">col</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">Widget</span>::<span class="ident">row</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} within 15 minutes"</span>, <span class="self">self</span>.<span class="ident">category</span>))
|
||||
.<span class="ident">small_heading</span>()
|
||||
.<span class="ident">draw</span>(<span class="ident">ctx</span>),
|
||||
<span class="ident">Btn</span>::<span class="ident">close</span>(<span class="ident">ctx</span>),
|
||||
]),
|
||||
<span class="self">self</span>.<span class="ident">table</span>.<span class="ident">render</span>(<span class="ident">ctx</span>, <span class="ident">app</span>),
|
||||
]))
|
||||
.<span class="ident">build</span>(<span class="ident">ctx</span>);
|
||||
<span class="ident">new</span>.<span class="ident">restore</span>(<span class="ident">ctx</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">panel</span>);
|
||||
<span class="self">self</span>.<span class="ident">panel</span> <span class="op">=</span> <span class="ident">new</span>;
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">State</span><span class="op"><</span><span class="ident">App</span><span class="op">></span> <span class="kw">for</span> <span class="ident">ExploreAmenities</span> {
|
||||
<span class="kw">fn</span> <span class="ident">event</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">App</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Transition</span><span class="op"><</span><span class="ident">App</span><span class="op">></span> {
|
||||
<span class="ident">ctx</span>.<span class="ident">canvas_movement</span>();
|
||||
|
||||
<span class="kw">match</span> <span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">event</span>(<span class="ident">ctx</span>) {
|
||||
<span class="ident">Outcome</span>::<span class="ident">Clicked</span>(<span class="ident">x</span>) <span class="op">=</span><span class="op">></span> {
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">table</span>.<span class="ident">clicked</span>(<span class="kw-2">&</span><span class="ident">x</span>) {
|
||||
<span class="self">self</span>.<span class="ident">recalc</span>(<span class="ident">ctx</span>, <span class="ident">app</span>);
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">x</span> <span class="op">=</span><span class="op">=</span> <span class="string">"close"</span> {
|
||||
<span class="kw">return</span> <span class="ident">Transition</span>::<span class="ident">Pop</span>;
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">idx</span>) <span class="op">=</span> <span class="ident">x</span>.<span class="ident">split</span>(<span class="string">":"</span>).<span class="ident">next</span>().<span class="ident">and_then</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">parse</span>::<span class="op"><</span><span class="ident">usize</span><span class="op">></span>().<span class="ident">ok</span>())
|
||||
{
|
||||
<span class="kw">let</span> <span class="ident">b</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">map</span>.<span class="ident">get_b</span>(<span class="ident">BuildingID</span>(<span class="ident">idx</span>));
|
||||
<span class="ident">open_browser</span>(<span class="ident">b</span>.<span class="ident">orig_id</span>.<span class="ident">to_string</span>());
|
||||
} <span class="kw">else</span> {
|
||||
<span class="macro">unreachable</span><span class="macro">!</span>()
|
||||
}
|
||||
}
|
||||
<span class="ident">Outcome</span>::<span class="ident">Changed</span> <span class="op">=</span><span class="op">></span> {
|
||||
<span class="self">self</span>.<span class="ident">table</span>.<span class="ident">panel_changed</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">panel</span>);
|
||||
<span class="self">self</span>.<span class="ident">recalc</span>(<span class="ident">ctx</span>, <span class="ident">app</span>);
|
||||
}
|
||||
<span class="kw">_</span> <span class="op">=</span><span class="op">></span> {}
|
||||
}
|
||||
|
||||
<span class="ident">Transition</span>::<span class="ident">Keep</span>
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">draw_baselayer</span>(<span class="kw-2">&</span><span class="self">self</span>) <span class="op">-</span><span class="op">></span> <span class="ident">DrawBaselayer</span> {
|
||||
<span class="ident">DrawBaselayer</span>::<span class="ident">PreviousState</span>
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">draw</span>(<span class="kw-2">&</span><span class="self">self</span>, <span class="ident">g</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">GfxCtx</span>, <span class="kw">_</span>: <span class="kw-2">&</span><span class="ident">App</span>) {
|
||||
<span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">draw</span>(<span class="ident">g</span>);
|
||||
}
|
||||
}
|
||||
</pre></div>
|
||||
</section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "fifteen_min";</script><script src="../../main.js"></script><script src="../../source-script.js"></script><script src="../../source-files.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -122,7 +122,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.48.0 (7eac88abb 2020-11-16)"</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">"Sun, 20 Dec 2020 00:22:23 +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">"Sun, 20 Dec 2020 00:59:51 +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>
|
||||
|
@ -260,6 +260,17 @@
|
||||
<span id="257">257</span>
|
||||
<span id="258">258</span>
|
||||
<span id="259">259</span>
|
||||
<span id="260">260</span>
|
||||
<span id="261">261</span>
|
||||
<span id="262">262</span>
|
||||
<span id="263">263</span>
|
||||
<span id="264">264</span>
|
||||
<span id="265">265</span>
|
||||
<span id="266">266</span>
|
||||
<span id="267">267</span>
|
||||
<span id="268">268</span>
|
||||
<span id="269">269</span>
|
||||
<span id="270">270</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">abstutil</span>::<span class="ident">prettyprint_usize</span>;
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::<span class="ident">Polygon</span>;
|
||||
@ -425,6 +436,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">impl</span><span class="op"><</span><span class="ident">A</span>, <span class="ident">T</span><span class="op">></span> <span class="ident">Filter</span><span class="op"><</span><span class="ident">A</span>, <span class="ident">T</span>, ()<span class="op">></span> {
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">empty</span>() <span class="op">-</span><span class="op">></span> <span class="ident">Filter</span><span class="op"><</span><span class="ident">A</span>, <span class="ident">T</span>, ()<span class="op">></span> {
|
||||
<span class="ident">Filter</span> {
|
||||
<span class="ident">state</span>: (),
|
||||
<span class="ident">to_controls</span>: <span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="kw">_</span>, <span class="kw">_</span>, <span class="kw">_</span><span class="op">|</span> <span class="ident">Widget</span>::<span class="ident">nothing</span>()),
|
||||
<span class="ident">from_controls</span>: <span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="kw">_</span><span class="op">|</span> ()),
|
||||
<span class="ident">apply</span>: <span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="kw">_</span>, <span class="kw">_</span><span class="op">|</span> <span class="bool-val">true</span>),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<span class="comment">// Simpler wrappers than column(). The more generic case exists to allow for icons and non-text</span>
|
||||
<span class="comment">// things.</span>
|
||||
<span class="kw">impl</span><span class="op"><</span><span class="ident">A</span>, <span class="ident">T</span>: <span class="lifetime">'static</span>, <span class="ident">F</span><span class="op">></span> <span class="ident">Table</span><span class="op"><</span><span class="ident">A</span>, <span class="ident">T</span>, <span class="ident">F</span><span class="op">></span> {
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!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 `table` mod in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, table"><title>widgetry::table - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc 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='../../widgetry/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module table</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li></ul></div><p class='location'><a href='../index.html'>widgetry</a></p><script>window.sidebarCurrent = {name: 'table', 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/widgetry/widgets/table.rs.html#1-259' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>widgetry</a>::<wbr><a class="mod" href=''>table</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</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/widgetry/widgets/table.rs.html#1-270' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>widgetry</a>::<wbr><a class="mod" href=''>table</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.Filter.html" title='widgetry::table::Filter struct'>Filter</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Table.html" title='widgetry::table::Table struct'>Table</a></td><td class='docblock-short'></td></tr></table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2>
|
||||
<table><tr class='module-item'><td><a class="enum" href="enum.Col.html" title='widgetry::table::Col enum'>Col</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "widgetry";</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
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
<!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_pagination` fn in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, make_pagination"><title>widgetry::widgets::table::make_pagination - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc 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='../../../widgetry/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'>widgetry</a>::<wbr><a href='../index.html'>widgets</a>::<wbr><a href='index.html'>table</a></p><script>window.sidebarCurrent = {name: 'make_pagination', 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/widgetry/widgets/table.rs.html#177-202' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>widgetry</a>::<wbr><a href='../index.html'>widgets</a>::<wbr><a href='index.html'>table</a>::<wbr><a class="fn" href=''>make_pagination</a></span></h1><pre class='rust fn'>fn make_pagination(ctx: &mut <a class="struct" href="../../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, total: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, skip: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="struct" href="../../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "widgetry";</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/widgetry/widgets/table.rs.html#188-213' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>widgetry</a>::<wbr><a href='../index.html'>widgets</a>::<wbr><a href='index.html'>table</a>::<wbr><a class="fn" href=''>make_pagination</a></span></h1><pre class='rust fn'>fn make_pagination(ctx: &mut <a class="struct" href="../../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, total: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, skip: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="struct" href="../../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "widgetry";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!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_table` fn in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, make_table"><title>widgetry::widgets::table::make_table - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc 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='../../../widgetry/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'>widgetry</a>::<wbr><a href='../index.html'>widgets</a>::<wbr><a href='index.html'>table</a></p><script>window.sidebarCurrent = {name: 'make_table', 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/widgetry/widgets/table.rs.html#204-259' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>widgetry</a>::<wbr><a href='../index.html'>widgets</a>::<wbr><a href='index.html'>table</a>::<wbr><a class="fn" href=''>make_table</a></span></h1><pre class='rust fn'>fn make_table(<br> ctx: &mut <a class="struct" href="../../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, <br> headers: <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="../../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a>>, <br> rows: <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="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</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="../../../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a>><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>>, <br> total_width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><br>) -> <a class="struct" href="../../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "widgetry";</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/widgetry/widgets/table.rs.html#215-270' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>widgetry</a>::<wbr><a href='../index.html'>widgets</a>::<wbr><a href='index.html'>table</a>::<wbr><a class="fn" href=''>make_table</a></span></h1><pre class='rust fn'>fn make_table(<br> ctx: &mut <a class="struct" href="../../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, <br> headers: <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="../../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a>>, <br> rows: <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="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</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="../../../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a>><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>>, <br> total_width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><br>) -> <a class="struct" href="../../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "widgetry";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,7 +1,7 @@
|
||||
<!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 `table` mod in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, table"><title>widgetry::widgets::table - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc 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='../../../widgetry/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module table</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#constants">Constants</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../../index.html'>widgetry</a>::<wbr><a href='../index.html'>widgets</a></p><script>window.sidebarCurrent = {name: 'table', 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/widgetry/widgets/table.rs.html#1-259' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>widgetry</a>::<wbr><a href='../index.html'>widgets</a>::<wbr><a class="mod" href=''>table</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</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/widgetry/widgets/table.rs.html#1-270' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>widgetry</a>::<wbr><a href='../index.html'>widgets</a>::<wbr><a class="mod" href=''>table</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.Column.html" title='widgetry::widgets::table::Column struct'>Column</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Filter.html" title='widgetry::widgets::table::Filter struct'>Filter</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Table.html" title='widgetry::widgets::table::Table struct'>Table</a></td><td class='docblock-short'></td></tr></table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2>
|
||||
<table><tr class='module-item'><td><a class="enum" href="enum.Col.html" title='widgetry::widgets::table::Col enum'>Col</a></td><td class='docblock-short'></td></tr></table><h2 id='constants' class='section-header'><a href="#constants">Constants</a></h2>
|
||||
<table><tr class='module-item'><td><a class="constant" href="constant.ROWS.html" title='widgetry::widgets::table::ROWS constant'>ROWS</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
Loading…
Reference in New Issue
Block a user