mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-24 23:15:24 +03:00
deploy: c2ef091fb4
This commit is contained in:
parent
24f1c39aa5
commit
c9f5050c99
@ -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 `ColorSchemeChoice` enum in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, ColorSchemeChoice"><title>game::colors::ColorSchemeChoice - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc enum"><!--[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'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Enum ColorSchemeChoice</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.BAP">BAP</a><a href="#variant.NightMode">NightMode</a><a href="#variant.OSM">OSM</a><a href="#variant.SAMDesertDay">SAMDesertDay</a><a href="#variant.SAMGreenDay">SAMGreenDay</a><a href="#variant.Standard">Standard</a><a href="#variant.Starcat">Starcat</a><a href="#variant.Textured">Textured</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.choices">choices</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Copy">Copy</a><a href="#impl-Debug">Debug</a><a href="#impl-PartialEq%3CColorSchemeChoice%3E">PartialEq<ColorSchemeChoice></a><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ToOwned">ToOwned</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'>game</a>::<wbr><a href='index.html'>colors</a></p><script>window.sidebarCurrent = {name: 'ColorSchemeChoice', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/game/colors.rs.html#17-26' title='goto source code'>[src]</a></span><span class='in-band'>Enum <a href='../index.html'>game</a>::<wbr><a href='index.html'>colors</a>::<wbr><a class="enum" href=''>ColorSchemeChoice</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust enum'>pub enum ColorSchemeChoice {
|
||||
<!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 `ColorSchemeChoice` enum in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, ColorSchemeChoice"><title>game::colors::ColorSchemeChoice - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc enum"><!--[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'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Enum ColorSchemeChoice</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.BAP">BAP</a><a href="#variant.MapboxDark">MapboxDark</a><a href="#variant.MapboxLight">MapboxLight</a><a href="#variant.NightMode">NightMode</a><a href="#variant.OSM">OSM</a><a href="#variant.SAMDesertDay">SAMDesertDay</a><a href="#variant.SAMGreenDay">SAMGreenDay</a><a href="#variant.Standard">Standard</a><a href="#variant.Starcat">Starcat</a><a href="#variant.Textured">Textured</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.choices">choices</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Copy">Copy</a><a href="#impl-Debug">Debug</a><a href="#impl-PartialEq%3CColorSchemeChoice%3E">PartialEq<ColorSchemeChoice></a><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ToOwned">ToOwned</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'>game</a>::<wbr><a href='index.html'>colors</a></p><script>window.sidebarCurrent = {name: 'ColorSchemeChoice', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/game/colors.rs.html#17-28' title='goto source code'>[src]</a></span><span class='in-band'>Enum <a href='../index.html'>game</a>::<wbr><a href='index.html'>colors</a>::<wbr><a class="enum" href=''>ColorSchemeChoice</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust enum'>pub enum ColorSchemeChoice {
|
||||
Standard,
|
||||
NightMode,
|
||||
SAMGreenDay,
|
||||
@ -7,9 +7,11 @@
|
||||
OSM,
|
||||
Starcat,
|
||||
Textured,
|
||||
MapboxLight,
|
||||
MapboxDark,
|
||||
}</pre></div><h2 id='variants' class='variants small-section-header'>
|
||||
Variants<a href='#variants' class='anchor'></a></h2>
|
||||
<div id="variant.Standard" class="variant small-section-header"><a href="#variant.Standard" class="anchor field"></a><code>Standard</code></div><div id="variant.NightMode" class="variant small-section-header"><a href="#variant.NightMode" class="anchor field"></a><code>NightMode</code></div><div id="variant.SAMGreenDay" class="variant small-section-header"><a href="#variant.SAMGreenDay" class="anchor field"></a><code>SAMGreenDay</code></div><div id="variant.SAMDesertDay" class="variant small-section-header"><a href="#variant.SAMDesertDay" class="anchor field"></a><code>SAMDesertDay</code></div><div id="variant.BAP" class="variant small-section-header"><a href="#variant.BAP" class="anchor field"></a><code>BAP</code></div><div id="variant.OSM" class="variant small-section-header"><a href="#variant.OSM" class="anchor field"></a><code>OSM</code></div><div id="variant.Starcat" class="variant small-section-header"><a href="#variant.Starcat" class="anchor field"></a><code>Starcat</code></div><div id="variant.Textured" class="variant small-section-header"><a href="#variant.Textured" class="anchor field"></a><code>Textured</code></div><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="enum" href="../../game/colors/enum.ColorSchemeChoice.html" title="enum game::colors::ColorSchemeChoice">ColorSchemeChoice</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../src/game/colors.rs.html#28-41' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.choices' class="method"><code>pub fn <a href='#method.choices' class='fnname'>choices</a>() -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><Choice<<a class="enum" href="../../game/colors/enum.ColorSchemeChoice.html" title="enum game::colors::ColorSchemeChoice">ColorSchemeChoice</a>>></code><a class='srclink' href='../../src/game/colors.rs.html#29-40' 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-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../../game/colors/enum.ColorSchemeChoice.html" title="enum game::colors::ColorSchemeChoice">ColorSchemeChoice</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../src/game/colors.rs.html#16' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="enum" href="../../game/colors/enum.ColorSchemeChoice.html" title="enum game::colors::ColorSchemeChoice">ColorSchemeChoice</a></code><a class='srclink' href='../../src/game/colors.rs.html#16' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
<div id="variant.Standard" class="variant small-section-header"><a href="#variant.Standard" class="anchor field"></a><code>Standard</code></div><div id="variant.NightMode" class="variant small-section-header"><a href="#variant.NightMode" class="anchor field"></a><code>NightMode</code></div><div id="variant.SAMGreenDay" class="variant small-section-header"><a href="#variant.SAMGreenDay" class="anchor field"></a><code>SAMGreenDay</code></div><div id="variant.SAMDesertDay" class="variant small-section-header"><a href="#variant.SAMDesertDay" class="anchor field"></a><code>SAMDesertDay</code></div><div id="variant.BAP" class="variant small-section-header"><a href="#variant.BAP" class="anchor field"></a><code>BAP</code></div><div id="variant.OSM" class="variant small-section-header"><a href="#variant.OSM" class="anchor field"></a><code>OSM</code></div><div id="variant.Starcat" class="variant small-section-header"><a href="#variant.Starcat" class="anchor field"></a><code>Starcat</code></div><div id="variant.Textured" class="variant small-section-header"><a href="#variant.Textured" class="anchor field"></a><code>Textured</code></div><div id="variant.MapboxLight" class="variant small-section-header"><a href="#variant.MapboxLight" class="anchor field"></a><code>MapboxLight</code></div><div id="variant.MapboxDark" class="variant small-section-header"><a href="#variant.MapboxDark" class="anchor field"></a><code>MapboxDark</code></div><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="enum" href="../../game/colors/enum.ColorSchemeChoice.html" title="enum game::colors::ColorSchemeChoice">ColorSchemeChoice</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../src/game/colors.rs.html#30-45' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.choices' class="method"><code>pub fn <a href='#method.choices' class='fnname'>choices</a>() -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><Choice<<a class="enum" href="../../game/colors/enum.ColorSchemeChoice.html" title="enum game::colors::ColorSchemeChoice">ColorSchemeChoice</a>>></code><a class='srclink' href='../../src/game/colors.rs.html#31-44' 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-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../../game/colors/enum.ColorSchemeChoice.html" title="enum game::colors::ColorSchemeChoice">ColorSchemeChoice</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../src/game/colors.rs.html#16' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="enum" href="../../game/colors/enum.ColorSchemeChoice.html" title="enum game::colors::ColorSchemeChoice">ColorSchemeChoice</a></code><a class='srclink' href='../../src/game/colors.rs.html#16' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h4 id='method.clone_from' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></div><h3 id='impl-Copy' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="enum" href="../../game/colors/enum.ColorSchemeChoice.html" title="enum game::colors::ColorSchemeChoice">ColorSchemeChoice</a></code><a href='#impl-Copy' class='anchor'></a><a class='srclink' href='../../src/game/colors.rs.html#16' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-Debug' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../game/colors/enum.ColorSchemeChoice.html" title="enum game::colors::ColorSchemeChoice">ColorSchemeChoice</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../../src/game/colors.rs.html#16' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../../src/game/colors.rs.html#16' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id='impl-PartialEq%3CColorSchemeChoice%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="enum" href="../../game/colors/enum.ColorSchemeChoice.html" title="enum game::colors::ColorSchemeChoice">ColorSchemeChoice</a>> for <a class="enum" href="../../game/colors/enum.ColorSchemeChoice.html" title="enum game::colors::ColorSchemeChoice">ColorSchemeChoice</a></code><a href='#impl-PartialEq%3CColorSchemeChoice%3E' class='anchor'></a><a class='srclink' href='../../src/game/colors.rs.html#16' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.eq' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &<a class="enum" href="../../game/colors/enum.ColorSchemeChoice.html" title="enum game::colors::ColorSchemeChoice">ColorSchemeChoice</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/game/colors.rs.html#16' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||||
|
@ -1 +1 @@
|
||||
<!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 `hex` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, hex"><title>game::colors::hex - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container'><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'>colors</a></p><script>window.sidebarCurrent = {name: 'hex', 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><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/colors.rs.html#264-266' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>colors</a>::<wbr><a class="fn" href=''>hex</a></span></h1><pre class='rust fn'>fn hex(x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> Color</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
<!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 `hex` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, hex"><title>game::colors::hex - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container'><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'>colors</a></p><script>window.sidebarCurrent = {name: 'hex', 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><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/colors.rs.html#270-272' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>colors</a>::<wbr><a class="fn" href=''>hex</a></span></h1><pre class='rust fn'>fn hex(x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> Color</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1 +1 @@
|
||||
<!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 `modulo_color` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, modulo_color"><title>game::colors::modulo_color - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container'><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'>colors</a></p><script>window.sidebarCurrent = {name: 'modulo_color', 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><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/colors.rs.html#259-261' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>colors</a>::<wbr><a class="fn" href=''>modulo_color</a></span></h1><pre class='rust fn'>fn modulo_color(colors: &<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><Color>, idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> Color</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
<!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 `modulo_color` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, modulo_color"><title>game::colors::modulo_color - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container'><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'>colors</a></p><script>window.sidebarCurrent = {name: 'modulo_color', 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><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/colors.rs.html#265-267' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>colors</a>::<wbr><a class="fn" href=''>modulo_color</a></span></h1><pre class='rust fn'>fn modulo_color(colors: &<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><Color>, idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> Color</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,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 `colors` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, colors"><title>game::colors - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module colors</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="#functions">Functions</a></li></ul></div><p class='location'><a href='../index.html'>game</a></p><script>window.sidebarCurrent = {name: 'colors', 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><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/colors.rs.html#1-366' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>game</a>::<wbr><a class="mod" href=''>colors</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<!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 `colors` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, colors"><title>game::colors - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module colors</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="#functions">Functions</a></li></ul></div><p class='location'><a href='../index.html'>game</a></p><script>window.sidebarCurrent = {name: 'colors', 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><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/colors.rs.html#1-410' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>game</a>::<wbr><a class="mod" href=''>colors</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.ColorScheme.html" title='game::colors::ColorScheme struct'>ColorScheme</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.ColorSchemeChoice.html" title='game::colors::ColorSchemeChoice enum'>ColorSchemeChoice</a></td><td class='docblock-short'></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.hex.html" title='game::colors::hex fn'>hex</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.modulo_color.html" title='game::colors::modulo_color fn'>modulo_color</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 = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
File diff suppressed because one or more lines are too long
@ -1,2 +1,2 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc 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'><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><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-9f4de26f0a0787cb/out/built.rs.html#49' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a>::<wbr><a class="constant" href=''>BUILT_TIME_UTC</a></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Thu, 01 Oct 2020 19:16:52 +0000";</pre><div class='docblock'><p>The built-time in RFC2822, UTC</p>
|
||||
<!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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc 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'><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><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-9f4de26f0a0787cb/out/built.rs.html#49' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a>::<wbr><a class="constant" href=''>BUILT_TIME_UTC</a></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Thu, 01 Oct 2020 21:06:14 +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
@ -364,6 +364,50 @@
|
||||
<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>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">common</span>::<span class="ident">ColorScale</span>;
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">helpers</span>::<span class="ident">loading_tips</span>;
|
||||
@ -390,6 +434,8 @@
|
||||
<span class="ident">OSM</span>,
|
||||
<span class="ident">Starcat</span>,
|
||||
<span class="ident">Textured</span>,
|
||||
<span class="ident">MapboxLight</span>,
|
||||
<span class="ident">MapboxDark</span>,
|
||||
}
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">ColorSchemeChoice</span> {
|
||||
@ -403,6 +449,8 @@
|
||||
<span class="ident">Choice</span>::<span class="ident">new</span>(<span class="string">"osm"</span>, <span class="ident">ColorSchemeChoice</span>::<span class="ident">OSM</span>),
|
||||
<span class="ident">Choice</span>::<span class="ident">new</span>(<span class="string">"starcat"</span>, <span class="ident">ColorSchemeChoice</span>::<span class="ident">Starcat</span>),
|
||||
<span class="ident">Choice</span>::<span class="ident">new</span>(<span class="string">"textured"</span>, <span class="ident">ColorSchemeChoice</span>::<span class="ident">Textured</span>),
|
||||
<span class="ident">Choice</span>::<span class="ident">new</span>(<span class="string">"mapbox light"</span>, <span class="ident">ColorSchemeChoice</span>::<span class="ident">MapboxLight</span>),
|
||||
<span class="ident">Choice</span>::<span class="ident">new</span>(<span class="string">"mapbox dark"</span>, <span class="ident">ColorSchemeChoice</span>::<span class="ident">MapboxDark</span>),
|
||||
]
|
||||
}
|
||||
}
|
||||
@ -505,6 +553,8 @@
|
||||
<span class="ident">ColorSchemeChoice</span>::<span class="ident">OSM</span> <span class="op">=</span><span class="op">></span> <span class="ident">ColorScheme</span>::<span class="ident">osm</span>(),
|
||||
<span class="ident">ColorSchemeChoice</span>::<span class="ident">Starcat</span> <span class="op">=</span><span class="op">></span> <span class="ident">ColorScheme</span>::<span class="ident">starcat</span>(),
|
||||
<span class="ident">ColorSchemeChoice</span>::<span class="ident">Textured</span> <span class="op">=</span><span class="op">></span> <span class="ident">ColorScheme</span>::<span class="ident">textured</span>(),
|
||||
<span class="ident">ColorSchemeChoice</span>::<span class="ident">MapboxLight</span> <span class="op">=</span><span class="op">></span> <span class="ident">ColorScheme</span>::<span class="ident">mapbox_light</span>(),
|
||||
<span class="ident">ColorSchemeChoice</span>::<span class="ident">MapboxDark</span> <span class="op">=</span><span class="op">></span> <span class="ident">ColorScheme</span>::<span class="ident">mapbox_dark</span>(),
|
||||
}
|
||||
}
|
||||
|
||||
@ -537,8 +587,8 @@
|
||||
<span class="ident">sidewalk_lines</span>: <span class="ident">Color</span>::<span class="ident">grey</span>(<span class="number">0.7</span>),
|
||||
<span class="ident">general_road_marking</span>: <span class="ident">Color</span>::<span class="ident">WHITE</span>,
|
||||
<span class="ident">road_center_line</span>: <span class="ident">Color</span>::<span class="ident">YELLOW</span>,
|
||||
<span class="ident">light_rail_track</span>: <span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#844204"</span>),
|
||||
<span class="ident">private_road</span>: <span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#F0B0C0"</span>),
|
||||
<span class="ident">light_rail_track</span>: <span class="ident">hex</span>(<span class="string">"#844204"</span>),
|
||||
<span class="ident">private_road</span>: <span class="ident">hex</span>(<span class="string">"#F0B0C0"</span>),
|
||||
<span class="ident">unzoomed_highway</span>: <span class="ident">Color</span>::<span class="ident">rgb</span>(<span class="number">232</span>, <span class="number">146</span>, <span class="number">162</span>),
|
||||
<span class="ident">unzoomed_arterial</span>: <span class="ident">Color</span>::<span class="ident">rgb</span>(<span class="number">255</span>, <span class="number">199</span>, <span class="number">62</span>),
|
||||
<span class="ident">unzoomed_residential</span>: <span class="ident">Color</span>::<span class="ident">WHITE</span>,
|
||||
@ -558,9 +608,9 @@
|
||||
<span class="ident">void_background</span>: <span class="ident">Color</span>::<span class="ident">BLACK</span>,
|
||||
<span class="ident">map_background</span>: <span class="ident">Color</span>::<span class="ident">grey</span>(<span class="number">0.87</span>).<span class="ident">into</span>(),
|
||||
<span class="ident">unzoomed_interesting_intersection</span>: <span class="ident">Color</span>::<span class="ident">BLACK</span>,
|
||||
<span class="ident">residential_building</span>: <span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#C4C1BC"</span>),
|
||||
<span class="ident">commerical_building</span>: <span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#9FABA7"</span>),
|
||||
<span class="ident">building_outline</span>: <span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#938E85"</span>),
|
||||
<span class="ident">residential_building</span>: <span class="ident">hex</span>(<span class="string">"#C4C1BC"</span>),
|
||||
<span class="ident">commerical_building</span>: <span class="ident">hex</span>(<span class="string">"#9FABA7"</span>),
|
||||
<span class="ident">building_outline</span>: <span class="ident">hex</span>(<span class="string">"#938E85"</span>),
|
||||
<span class="ident">parking_lot</span>: <span class="ident">Color</span>::<span class="ident">grey</span>(<span class="number">0.7</span>),
|
||||
<span class="ident">grass</span>: <span class="ident">hex</span>(<span class="string">"#94C84A"</span>).<span class="ident">into</span>(),
|
||||
<span class="ident">water</span>: <span class="ident">Color</span>::<span class="ident">rgb</span>(<span class="number">164</span>, <span class="number">200</span>, <span class="number">234</span>).<span class="ident">into</span>(),
|
||||
@ -584,13 +634,13 @@
|
||||
<span class="ident">brake_light</span>: <span class="ident">hex</span>(<span class="string">"#FF1300"</span>),
|
||||
<span class="ident">bus_body</span>: <span class="ident">Color</span>::<span class="ident">rgb</span>(<span class="number">50</span>, <span class="number">133</span>, <span class="number">117</span>),
|
||||
<span class="ident">bus_label</span>: <span class="ident">Color</span>::<span class="ident">rgb</span>(<span class="number">249</span>, <span class="number">206</span>, <span class="number">24</span>),
|
||||
<span class="ident">train_body</span>: <span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#42B6E9"</span>),
|
||||
<span class="ident">train_body</span>: <span class="ident">hex</span>(<span class="string">"#42B6E9"</span>),
|
||||
<span class="ident">ped_head</span>: <span class="ident">Color</span>::<span class="ident">rgb</span>(<span class="number">139</span>, <span class="number">69</span>, <span class="number">19</span>),
|
||||
<span class="ident">ped_foot</span>: <span class="ident">Color</span>::<span class="ident">BLACK</span>,
|
||||
<span class="ident">ped_preparing_bike_body</span>: <span class="ident">Color</span>::<span class="ident">rgb</span>(<span class="number">255</span>, <span class="number">0</span>, <span class="number">144</span>),
|
||||
<span class="ident">ped_crowd</span>: <span class="ident">Color</span>::<span class="ident">rgb_f</span>(<span class="number">0.2</span>, <span class="number">0.7</span>, <span class="number">0.7</span>),
|
||||
<span class="ident">bike_frame</span>: <span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#AAA9AD"</span>),
|
||||
<span class="ident">parked_car</span>: <span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#938E85"</span>),
|
||||
<span class="ident">bike_frame</span>: <span class="ident">hex</span>(<span class="string">"#AAA9AD"</span>),
|
||||
<span class="ident">parked_car</span>: <span class="ident">hex</span>(<span class="string">"#938E85"</span>),
|
||||
|
||||
<span class="comment">// Layers</span>
|
||||
<span class="ident">good_to_bad_red</span>: <span class="ident">ColorScale</span>(<span class="macro">vec</span><span class="macro">!</span>[<span class="ident">hex</span>(<span class="string">"#F19A93"</span>), <span class="ident">hex</span>(<span class="string">"#A32015"</span>)]),
|
||||
@ -730,6 +780,44 @@
|
||||
<span class="ident">cs</span>.<span class="ident">map_background</span> <span class="op">=</span> <span class="ident">Texture</span>::<span class="ident">CONCRETE</span>.<span class="ident">into</span>();
|
||||
<span class="ident">cs</span>
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">mapbox_light</span>() <span class="op">-</span><span class="op">></span> <span class="ident">ColorScheme</span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">cs</span> <span class="op">=</span> <span class="ident">ColorScheme</span>::<span class="ident">standard</span>();
|
||||
<span class="ident">cs</span>.<span class="ident">map_background</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">"#F2F3F1"</span>).<span class="ident">into</span>();
|
||||
<span class="ident">cs</span>.<span class="ident">unzoomed_highway</span> <span class="op">=</span> <span class="ident">Color</span>::<span class="ident">WHITE</span>;
|
||||
<span class="ident">cs</span>.<span class="ident">unzoomed_arterial</span> <span class="op">=</span> <span class="ident">Color</span>::<span class="ident">WHITE</span>;
|
||||
<span class="ident">cs</span>.<span class="ident">unzoomed_residential</span> <span class="op">=</span> <span class="ident">Color</span>::<span class="ident">WHITE</span>;
|
||||
<span class="ident">cs</span>.<span class="ident">grass</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">"#ECEEED"</span>).<span class="ident">into</span>();
|
||||
<span class="ident">cs</span>.<span class="ident">water</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">"#CAD2D3"</span>).<span class="ident">into</span>();
|
||||
<span class="ident">cs</span>.<span class="ident">residential_building</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">"#E9E9E7"</span>).<span class="ident">into</span>();
|
||||
<span class="ident">cs</span>.<span class="ident">commerical_building</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">"#E9E9E7"</span>).<span class="ident">into</span>();
|
||||
<span class="ident">cs</span>
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">mapbox_dark</span>() <span class="op">-</span><span class="op">></span> <span class="ident">ColorScheme</span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">cs</span> <span class="op">=</span> <span class="ident">ColorScheme</span>::<span class="ident">standard</span>();
|
||||
<span class="ident">cs</span>.<span class="ident">map_background</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">"#343332"</span>).<span class="ident">into</span>();
|
||||
<span class="kw">let</span> <span class="ident">road</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">"#454545"</span>);
|
||||
<span class="ident">cs</span>.<span class="ident">unzoomed_highway</span> <span class="op">=</span> <span class="ident">road</span>;
|
||||
<span class="ident">cs</span>.<span class="ident">unzoomed_arterial</span> <span class="op">=</span> <span class="ident">road</span>;
|
||||
<span class="ident">cs</span>.<span class="ident">unzoomed_residential</span> <span class="op">=</span> <span class="ident">road</span>;
|
||||
<span class="ident">cs</span>.<span class="ident">grass</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">"#323432"</span>).<span class="ident">into</span>();
|
||||
<span class="ident">cs</span>.<span class="ident">water</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">"#181919"</span>).<span class="ident">into</span>();
|
||||
<span class="ident">cs</span>.<span class="ident">residential_building</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">"#2C2C2B"</span>).<span class="ident">into</span>();
|
||||
<span class="ident">cs</span>.<span class="ident">commerical_building</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">"#2C2C2B"</span>).<span class="ident">into</span>();
|
||||
|
||||
<span class="ident">cs</span>.<span class="ident">driving_lane</span> <span class="op">=</span> <span class="ident">road</span>;
|
||||
<span class="ident">cs</span>.<span class="ident">parking_lane</span> <span class="op">=</span> <span class="ident">road</span>;
|
||||
<span class="ident">cs</span>.<span class="ident">bike_lane</span> <span class="op">=</span> <span class="ident">road</span>;
|
||||
<span class="ident">cs</span>.<span class="ident">bus_lane</span> <span class="op">=</span> <span class="ident">road</span>;
|
||||
<span class="ident">cs</span>.<span class="ident">sidewalk</span> <span class="op">=</span> <span class="ident">road</span>;
|
||||
<span class="ident">cs</span>.<span class="ident">sidewalk_lines</span> <span class="op">=</span> <span class="ident">road</span>;
|
||||
<span class="ident">cs</span>.<span class="ident">normal_intersection</span> <span class="op">=</span> <span class="ident">road</span>;
|
||||
<span class="ident">cs</span>.<span class="ident">general_road_marking</span> <span class="op">=</span> <span class="ident">cs</span>.<span class="ident">building_outline</span>;
|
||||
<span class="ident">cs</span>.<span class="ident">road_center_line</span> <span class="op">=</span> <span class="ident">cs</span>.<span class="ident">general_road_marking</span>;
|
||||
|
||||
<span class="ident">cs</span>
|
||||
}
|
||||
}
|
||||
</pre></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 src="../../source-script.js"></script><script src="../../source-files.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -111,7 +111,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.46.0 (04488afe3 2020-08-24)"</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, 01 Oct 2020 19:16:52 +0000"</span>;
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"Thu, 01 Oct 2020 21:06:14 +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>
|
||||
|
Loading…
Reference in New Issue
Block a user