mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-28 03:35:51 +03:00
deploy: c6044fa54c
This commit is contained in:
parent
3bd6f74701
commit
f0425d8222
@ -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 id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc 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!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="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-a95c4551e63dceca/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> = "Thu, 11 Mar 2021 20:42:59 +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-a95c4551e63dceca/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> = "Fri, 12 Mar 2021 03:54:15 +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>
|
@ -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 `map` mod in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, map"><title>map_model::map - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc 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='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module map</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">map_model</a></p><script>window.sidebarCurrent = {name: "map", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="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/map_model/map.rs.html#1-725" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">map_model</a>::<wbr><a class="mod" href="">map</a></span></h1><div class="docblock"><p>A bunch of (mostly read-only) queries on a Map.</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/map_model/map.rs.html#1-724" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">map_model</a>::<wbr><a class="mod" href="">map</a></span></h1><div class="docblock"><p>A bunch of (mostly read-only) queries on a Map.</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.MapConfig.html" title="map_model::map::MapConfig struct">MapConfig</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.DrivingSide.html" title="map_model::map::DrivingSide enum">DrivingSide</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 = "map_model";</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
@ -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.50.0 (cb75ad5db 2021-02-10)"</span>;
|
||||
<span class="doccomment">/// The built-time in RFC2822, UTC</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"Thu, 11 Mar 2021 20:42:59 +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">"Fri, 12 Mar 2021 03:54:15 +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>
|
||||
|
@ -725,7 +725,6 @@
|
||||
<span id="722">722</span>
|
||||
<span id="723">723</span>
|
||||
<span id="724">724</span>
|
||||
<span id="725">725</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="doccomment">//! A bunch of (mostly read-only) queries on a Map.</span>
|
||||
|
||||
@ -777,61 +776,7 @@
|
||||
<span class="kw">match</span> <span class="ident">abstio</span>::<span class="ident">maybe_read_binary</span>(<span class="ident">path</span>.<span class="ident">clone</span>(), <span class="ident">timer</span>) {
|
||||
<span class="prelude-val">Ok</span>(<span class="ident">map</span>) <span class="op">=</span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">map</span>: <span class="ident">Map</span> <span class="op">=</span> <span class="ident">map</span>;
|
||||
<span class="ident">map</span>.<span class="ident">edits</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">new_edits</span>();
|
||||
|
||||
<span class="kw">if</span> <span class="bool-val">false</span> {
|
||||
<span class="kw">use</span> <span class="ident">abstutil</span>::{<span class="ident">prettyprint_usize</span>, <span class="ident">serialized_size_bytes</span>};
|
||||
<span class="macro">info</span><span class="macro">!</span>(
|
||||
<span class="string">"Total map size: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">serialized_size_bytes</span>(<span class="kw-2">&</span><span class="ident">map</span>))
|
||||
);
|
||||
<span class="macro">info</span><span class="macro">!</span>(
|
||||
<span class="string">"- {} roads: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">map</span>.<span class="ident">roads</span>.<span class="ident">len</span>()),
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">serialized_size_bytes</span>(<span class="kw-2">&</span><span class="ident">map</span>.<span class="ident">roads</span>))
|
||||
);
|
||||
<span class="macro">info</span><span class="macro">!</span>(
|
||||
<span class="string">"- {} lanes: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">map</span>.<span class="ident">lanes</span>.<span class="ident">len</span>()),
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">serialized_size_bytes</span>(<span class="kw-2">&</span><span class="ident">map</span>.<span class="ident">lanes</span>))
|
||||
);
|
||||
<span class="macro">info</span><span class="macro">!</span>(
|
||||
<span class="string">"- {} intersections: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">map</span>.<span class="ident">intersections</span>.<span class="ident">len</span>()),
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">serialized_size_bytes</span>(<span class="kw-2">&</span><span class="ident">map</span>.<span class="ident">intersections</span>))
|
||||
);
|
||||
<span class="macro">info</span><span class="macro">!</span>(
|
||||
<span class="string">"- {} turns: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">map</span>.<span class="ident">turns</span>.<span class="ident">len</span>()),
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">serialized_size_bytes</span>(<span class="kw-2">&</span><span class="ident">map</span>.<span class="ident">turns</span>))
|
||||
);
|
||||
<span class="macro">info</span><span class="macro">!</span>(
|
||||
<span class="string">"- {} buildings: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">map</span>.<span class="ident">buildings</span>.<span class="ident">len</span>()),
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">serialized_size_bytes</span>(<span class="kw-2">&</span><span class="ident">map</span>.<span class="ident">buildings</span>))
|
||||
);
|
||||
<span class="macro">info</span><span class="macro">!</span>(
|
||||
<span class="string">"- {} areas: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">map</span>.<span class="ident">areas</span>.<span class="ident">len</span>()),
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">serialized_size_bytes</span>(<span class="kw-2">&</span><span class="ident">map</span>.<span class="ident">areas</span>))
|
||||
);
|
||||
<span class="macro">info</span><span class="macro">!</span>(
|
||||
<span class="string">"- {} parking lots: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">map</span>.<span class="ident">parking_lots</span>.<span class="ident">len</span>()),
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">serialized_size_bytes</span>(<span class="kw-2">&</span><span class="ident">map</span>.<span class="ident">parking_lots</span>))
|
||||
);
|
||||
<span class="macro">info</span><span class="macro">!</span>(
|
||||
<span class="string">"- {} zones: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">map</span>.<span class="ident">zones</span>.<span class="ident">len</span>()),
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">serialized_size_bytes</span>(<span class="kw-2">&</span><span class="ident">map</span>.<span class="ident">zones</span>))
|
||||
);
|
||||
<span class="comment">// This is the partridge in the pear tree, I suppose</span>
|
||||
<span class="macro">info</span><span class="macro">!</span>(
|
||||
<span class="string">"- pathfinder: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">serialized_size_bytes</span>(<span class="kw-2">&</span><span class="ident">map</span>.<span class="ident">pathfinder</span>))
|
||||
);
|
||||
}
|
||||
|
||||
<span class="ident">map</span>.<span class="ident">map_loaded_directly</span>();
|
||||
<span class="kw">return</span> <span class="ident">map</span>;
|
||||
}
|
||||
<span class="prelude-val">Err</span>(<span class="ident">err</span>) <span class="op">=</span><span class="op">></span> {
|
||||
@ -867,6 +812,59 @@
|
||||
<span class="doccomment">/// though.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">map_loaded_directly</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>) {
|
||||
<span class="self">self</span>.<span class="ident">edits</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">new_edits</span>();
|
||||
|
||||
<span class="kw">if</span> <span class="bool-val">false</span> {
|
||||
<span class="kw">use</span> <span class="ident">abstutil</span>::{<span class="ident">prettyprint_usize</span>, <span class="ident">serialized_size_bytes</span>};
|
||||
<span class="macro">info</span><span class="macro">!</span>(
|
||||
<span class="string">"Total map size: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">serialized_size_bytes</span>(<span class="self">self</span>))
|
||||
);
|
||||
<span class="macro">info</span><span class="macro">!</span>(
|
||||
<span class="string">"- {} roads: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="self">self</span>.<span class="ident">roads</span>.<span class="ident">len</span>()),
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">serialized_size_bytes</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">roads</span>))
|
||||
);
|
||||
<span class="macro">info</span><span class="macro">!</span>(
|
||||
<span class="string">"- {} lanes: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="self">self</span>.<span class="ident">lanes</span>.<span class="ident">len</span>()),
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">serialized_size_bytes</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">lanes</span>))
|
||||
);
|
||||
<span class="macro">info</span><span class="macro">!</span>(
|
||||
<span class="string">"- {} intersections: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="self">self</span>.<span class="ident">intersections</span>.<span class="ident">len</span>()),
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">serialized_size_bytes</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">intersections</span>))
|
||||
);
|
||||
<span class="macro">info</span><span class="macro">!</span>(
|
||||
<span class="string">"- {} turns: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="self">self</span>.<span class="ident">turns</span>.<span class="ident">len</span>()),
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">serialized_size_bytes</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">turns</span>))
|
||||
);
|
||||
<span class="macro">info</span><span class="macro">!</span>(
|
||||
<span class="string">"- {} buildings: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="self">self</span>.<span class="ident">buildings</span>.<span class="ident">len</span>()),
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">serialized_size_bytes</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">buildings</span>))
|
||||
);
|
||||
<span class="macro">info</span><span class="macro">!</span>(
|
||||
<span class="string">"- {} areas: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="self">self</span>.<span class="ident">areas</span>.<span class="ident">len</span>()),
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">serialized_size_bytes</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">areas</span>))
|
||||
);
|
||||
<span class="macro">info</span><span class="macro">!</span>(
|
||||
<span class="string">"- {} parking lots: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="self">self</span>.<span class="ident">parking_lots</span>.<span class="ident">len</span>()),
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">serialized_size_bytes</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">parking_lots</span>))
|
||||
);
|
||||
<span class="macro">info</span><span class="macro">!</span>(
|
||||
<span class="string">"- {} zones: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="self">self</span>.<span class="ident">zones</span>.<span class="ident">len</span>()),
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">serialized_size_bytes</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">zones</span>))
|
||||
);
|
||||
<span class="comment">// This is the partridge in the pear tree, I suppose</span>
|
||||
<span class="macro">info</span><span class="macro">!</span>(
|
||||
<span class="string">"- pathfinder: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">serialized_size_bytes</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">pathfinder</span>))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Just for temporary std::mem::replace tricks.</span>
|
||||
|
Loading…
Reference in New Issue
Block a user