mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-25 23:43:25 +03:00
deploy: fda4c4da7b
This commit is contained in:
parent
155bc2d58a
commit
58bc4c5275
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 `PROGRESS_FREQUENCY_SECONDS` constant in crate `abstutil`."><meta name="keywords" content="rust, rustlang, rust-lang, PROGRESS_FREQUENCY_SECONDS"><title>abstutil::PROGRESS_FREQUENCY_SECONDS - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../abstutil/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'>abstutil</a></p><script>window.sidebarCurrent = {name: 'PROGRESS_FREQUENCY_SECONDS', 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>
|
<!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 `PROGRESS_FREQUENCY_SECONDS` constant in crate `abstutil`."><meta name="keywords" content="rust, rustlang, rust-lang, PROGRESS_FREQUENCY_SECONDS"><title>abstutil::PROGRESS_FREQUENCY_SECONDS - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../abstutil/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'>abstutil</a></p><script>window.sidebarCurrent = {name: 'PROGRESS_FREQUENCY_SECONDS', 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/abstutil/lib.rs.html#38' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='index.html'>abstutil</a>::<wbr><a class="constant" href=''>PROGRESS_FREQUENCY_SECONDS</a></span></h1><pre class='rust const'>const PROGRESS_FREQUENCY_SECONDS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a> = 0.2;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "abstutil";</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/abstutil/lib.rs.html#40' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='index.html'>abstutil</a>::<wbr><a class="constant" href=''>PROGRESS_FREQUENCY_SECONDS</a></span></h1><pre class='rust const'>const PROGRESS_FREQUENCY_SECONDS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a> = 0.2;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "abstutil";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
3
rustdoc/abstutil/fn.must_run_cmd.html
Normal file
3
rustdoc/abstutil/fn.must_run_cmd.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `must_run_cmd` fn in crate `abstutil`."><meta name="keywords" content="rust, rustlang, rust-lang, must_run_cmd"><title>abstutil::must_run_cmd - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../abstutil/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'>abstutil</a></p><script>window.sidebarCurrent = {name: 'must_run_cmd', 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/abstutil/process.rs.html#4-16' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='index.html'>abstutil</a>::<wbr><a class="fn" href=''>must_run_cmd</a></span></h1><pre class='rust fn'>pub fn must_run_cmd(cmd: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/std/process/struct.Command.html" title="struct std::process::Command">Command</a>)</pre><div class='docblock'><p>Runs a command, asserts success. STDOUT and STDERR aren't touched.</p>
|
||||||
|
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "abstutil";</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 `abstutil` crate."><meta name="keywords" content="rust, rustlang, rust-lang, abstutil"><title>abstutil - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../abstutil/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Crate abstutil</p><div class='block version'><p>Version 0.1.0</p></div><div class="sidebar-elems"><a id='all-types' href='all.html'><p>See all abstutil's items</p></a><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#constants">Constants</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'></p><script>window.sidebarCurrent = {name: 'abstutil', ty: 'mod', relpath: '../'};</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>
|
<!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 `abstutil` crate."><meta name="keywords" content="rust, rustlang, rust-lang, abstutil"><title>abstutil - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../abstutil/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Crate abstutil</p><div class='block version'><p>Version 0.1.0</p></div><div class="sidebar-elems"><a id='all-types' href='all.html'><p>See all abstutil's items</p></a><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#constants">Constants</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'></p><script>window.sidebarCurrent = {name: 'abstutil', ty: 'mod', relpath: '../'};</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/abstutil/lib.rs.html#1-38' title='goto source code'>[src]</a></span><span class='in-band'>Crate <a class="mod" href=''>abstutil</a></span></h1><div class='docblock'><p>The contents of this crate need to be organized better:</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/abstutil/lib.rs.html#1-40' title='goto source code'>[src]</a></span><span class='in-band'>Crate <a class="mod" href=''>abstutil</a></span></h1><div class='docblock'><p>The contents of this crate need to be organized better:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Timer (a mix of logging, profiling, and even parallel execution)</li>
|
<li>Timer (a mix of logging, profiling, and even parallel execution)</li>
|
||||||
<li>IO utilities, some of which have web equivalents using include_dir</li>
|
<li>IO utilities, some of which have web equivalents using include_dir</li>
|
||||||
@ -9,7 +9,7 @@
|
|||||||
</div><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
|
</div><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
|
||||||
<table><tr class='module-item'><td><a class="mod" href="abst_data/index.html" title='abstutil::abst_data mod'>abst_data</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="abst_paths/index.html" title='abstutil::abst_paths mod'>abst_paths</a></td><td class='docblock-short'><p>Generate paths for different A/B Street files</p>
|
<table><tr class='module-item'><td><a class="mod" href="abst_data/index.html" title='abstutil::abst_data mod'>abst_data</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="abst_paths/index.html" title='abstutil::abst_paths mod'>abst_paths</a></td><td class='docblock-short'><p>Generate paths for different A/B Street files</p>
|
||||||
</td></tr><tr class='module-item'><td><a class="mod" href="cli/index.html" title='abstutil::cli mod'>cli</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="collections/index.html" title='abstutil::collections mod'>collections</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="io/index.html" title='abstutil::io mod'>io</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="io_native/index.html" title='abstutil::io_native mod'>io_native</a></td><td class='docblock-short'><p>Normal file IO using the filesystem</p>
|
</td></tr><tr class='module-item'><td><a class="mod" href="cli/index.html" title='abstutil::cli mod'>cli</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="collections/index.html" title='abstutil::collections mod'>collections</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="io/index.html" title='abstutil::io mod'>io</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="io_native/index.html" title='abstutil::io_native mod'>io_native</a></td><td class='docblock-short'><p>Normal file IO using the filesystem</p>
|
||||||
</td></tr><tr class='module-item'><td><a class="mod" href="serde/index.html" title='abstutil::serde mod'>serde</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="time/index.html" title='abstutil::time mod'>time</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="utils/index.html" title='abstutil::utils mod'>utils</a></td><td class='docblock-short'></td></tr></table><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
</td></tr><tr class='module-item'><td><a class="mod" href="process/index.html" title='abstutil::process mod'>process</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="serde/index.html" title='abstutil::serde mod'>serde</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="time/index.html" title='abstutil::time mod'>time</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="utils/index.html" title='abstutil::utils mod'>utils</a></td><td class='docblock-short'></td></tr></table><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||||
<table><tr class='module-item'><td><a class="struct" href="struct.CmdArgs.html" title='abstutil::CmdArgs struct'>CmdArgs</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Counter.html" title='abstutil::Counter struct'>Counter</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Entry.html" title='abstutil::Entry struct'>Entry</a></td><td class='docblock-short'><p>A single file</p>
|
<table><tr class='module-item'><td><a class="struct" href="struct.CmdArgs.html" title='abstutil::CmdArgs struct'>CmdArgs</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Counter.html" title='abstutil::Counter struct'>Counter</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Entry.html" title='abstutil::Entry struct'>Entry</a></td><td class='docblock-short'><p>A single file</p>
|
||||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.FileWithProgress.html" title='abstutil::FileWithProgress struct'>FileWithProgress</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.FixedMap.html" title='abstutil::FixedMap struct'>FixedMap</a></td><td class='docblock-short'><p>A drop-in replacement for <code>BTreeMap</code>, where the keys have the property of being array indices.
|
</td></tr><tr class='module-item'><td><a class="struct" href="struct.FileWithProgress.html" title='abstutil::FileWithProgress struct'>FileWithProgress</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.FixedMap.html" title='abstutil::FixedMap struct'>FixedMap</a></td><td class='docblock-short'><p>A drop-in replacement for <code>BTreeMap</code>, where the keys have the property of being array indices.
|
||||||
Some values may be missing. Much more efficient at operations on individual objects, because
|
Some values may be missing. Much more efficient at operations on individual objects, because
|
||||||
@ -40,7 +40,8 @@ https://github.com/serde-rs/json/issues/402.</p>
|
|||||||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.list_dir.html" title='abstutil::list_dir fn'>list_dir</a></td><td class='docblock-short'><p>Returns full paths</p>
|
</td></tr><tr class='module-item'><td><a class="fn" href="fn.list_dir.html" title='abstutil::list_dir fn'>list_dir</a></td><td class='docblock-short'><p>Returns full paths</p>
|
||||||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.load_all_objects.html" title='abstutil::load_all_objects fn'>load_all_objects</a></td><td class='docblock-short'><p>Load all serialized things from a directory, return sorted by name, with file extension removed.
|
</td></tr><tr class='module-item'><td><a class="fn" href="fn.load_all_objects.html" title='abstutil::load_all_objects fn'>load_all_objects</a></td><td class='docblock-short'><p>Load all serialized things from a directory, return sorted by name, with file extension removed.
|
||||||
Detects JSON or binary. Filters out broken files.</p>
|
Detects JSON or binary. Filters out broken files.</p>
|
||||||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.maybe_read_binary.html" title='abstutil::maybe_read_binary fn'>maybe_read_binary</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.maybe_read_json.html" title='abstutil::maybe_read_json fn'>maybe_read_json</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.parent_path.html" title='abstutil::parent_path fn'>parent_path</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path.html" title='abstutil::path fn'>path</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_all_edits.html" title='abstutil::path_all_edits fn'>path_all_edits</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_all_maps.html" title='abstutil::path_all_maps fn'>path_all_maps</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_all_raw_maps.html" title='abstutil::path_all_raw_maps fn'>path_all_raw_maps</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_all_saves.html" title='abstutil::path_all_saves fn'>path_all_saves</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_all_scenarios.html" title='abstutil::path_all_scenarios fn'>path_all_scenarios</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_camera_state.html" title='abstutil::path_camera_state fn'>path_camera_state</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_edits.html" title='abstutil::path_edits fn'>path_edits</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_map.html" title='abstutil::path_map fn'>path_map</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_popdat.html" title='abstutil::path_popdat fn'>path_popdat</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_prebaked_results.html" title='abstutil::path_prebaked_results fn'>path_prebaked_results</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_raw_map.html" title='abstutil::path_raw_map fn'>path_raw_map</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_save.html" title='abstutil::path_save fn'>path_save</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_scenario.html" title='abstutil::path_scenario fn'>path_scenario</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.plain_list_names.html" title='abstutil::plain_list_names fn'>plain_list_names</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.prettyprint_time.html" title='abstutil::prettyprint_time fn'>prettyprint_time</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.prettyprint_usize.html" title='abstutil::prettyprint_usize fn'>prettyprint_usize</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.read_binary.html" title='abstutil::read_binary fn'>read_binary</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.read_json.html" title='abstutil::read_json fn'>read_json</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.read_object.html" title='abstutil::read_object fn'>read_object</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.retain_btreemap.html" title='abstutil::retain_btreemap fn'>retain_btreemap</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.retain_btreeset.html" title='abstutil::retain_btreeset fn'>retain_btreeset</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.serialize_btreemap.html" title='abstutil::serialize_btreemap fn'>serialize_btreemap</a></td><td class='docblock-short'><p>Serializes a BTreeMap as a list of tuples. Necessary when the keys are structs; see
|
</td></tr><tr class='module-item'><td><a class="fn" href="fn.maybe_read_binary.html" title='abstutil::maybe_read_binary fn'>maybe_read_binary</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.maybe_read_json.html" title='abstutil::maybe_read_json fn'>maybe_read_json</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.must_run_cmd.html" title='abstutil::must_run_cmd fn'>must_run_cmd</a></td><td class='docblock-short'><p>Runs a command, asserts success. STDOUT and STDERR aren't touched.</p>
|
||||||
|
</td></tr><tr class='module-item'><td><a class="fn" href="fn.parent_path.html" title='abstutil::parent_path fn'>parent_path</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path.html" title='abstutil::path fn'>path</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_all_edits.html" title='abstutil::path_all_edits fn'>path_all_edits</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_all_maps.html" title='abstutil::path_all_maps fn'>path_all_maps</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_all_raw_maps.html" title='abstutil::path_all_raw_maps fn'>path_all_raw_maps</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_all_saves.html" title='abstutil::path_all_saves fn'>path_all_saves</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_all_scenarios.html" title='abstutil::path_all_scenarios fn'>path_all_scenarios</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_camera_state.html" title='abstutil::path_camera_state fn'>path_camera_state</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_edits.html" title='abstutil::path_edits fn'>path_edits</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_map.html" title='abstutil::path_map fn'>path_map</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_popdat.html" title='abstutil::path_popdat fn'>path_popdat</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_prebaked_results.html" title='abstutil::path_prebaked_results fn'>path_prebaked_results</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_raw_map.html" title='abstutil::path_raw_map fn'>path_raw_map</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_save.html" title='abstutil::path_save fn'>path_save</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.path_scenario.html" title='abstutil::path_scenario fn'>path_scenario</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.plain_list_names.html" title='abstutil::plain_list_names fn'>plain_list_names</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.prettyprint_time.html" title='abstutil::prettyprint_time fn'>prettyprint_time</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.prettyprint_usize.html" title='abstutil::prettyprint_usize fn'>prettyprint_usize</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.read_binary.html" title='abstutil::read_binary fn'>read_binary</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.read_json.html" title='abstutil::read_json fn'>read_json</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.read_object.html" title='abstutil::read_object fn'>read_object</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.retain_btreemap.html" title='abstutil::retain_btreemap fn'>retain_btreemap</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.retain_btreeset.html" title='abstutil::retain_btreeset fn'>retain_btreeset</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.serialize_btreemap.html" title='abstutil::serialize_btreemap fn'>serialize_btreemap</a></td><td class='docblock-short'><p>Serializes a BTreeMap as a list of tuples. Necessary when the keys are structs; see
|
||||||
https://github.com/serde-rs/json/issues/402.</p>
|
https://github.com/serde-rs/json/issues/402.</p>
|
||||||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.serialize_hashmap.html" title='abstutil::serialize_hashmap fn'>serialize_hashmap</a></td><td class='docblock-short'><p>Serializes a HashMap as a list of tuples, first sorting by the keys. This ensures the
|
</td></tr><tr class='module-item'><td><a class="fn" href="fn.serialize_hashmap.html" title='abstutil::serialize_hashmap fn'>serialize_hashmap</a></td><td class='docblock-short'><p>Serializes a HashMap as a list of tuples, first sorting by the keys. This ensures the
|
||||||
serialized form is deterministic.</p>
|
serialized form is deterministic.</p>
|
||||||
|
3
rustdoc/abstutil/process/fn.must_run_cmd.html
Normal file
3
rustdoc/abstutil/process/fn.must_run_cmd.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `must_run_cmd` fn in crate `abstutil`."><meta name="keywords" content="rust, rustlang, rust-lang, must_run_cmd"><title>abstutil::process::must_run_cmd - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../abstutil/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'>abstutil</a>::<wbr><a href='index.html'>process</a></p><script>window.sidebarCurrent = {name: 'must_run_cmd', 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/abstutil/process.rs.html#4-16' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>abstutil</a>::<wbr><a href='index.html'>process</a>::<wbr><a class="fn" href=''>must_run_cmd</a></span></h1><pre class='rust fn'>pub fn must_run_cmd(cmd: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/std/process/struct.Command.html" title="struct std::process::Command">Command</a>)</pre><div class='docblock'><p>Runs a command, asserts success. STDOUT and STDERR aren't touched.</p>
|
||||||
|
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "abstutil";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
4
rustdoc/abstutil/process/index.html
Normal file
4
rustdoc/abstutil/process/index.html
Normal file
@ -0,0 +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 `process` mod in crate `abstutil`."><meta name="keywords" content="rust, rustlang, rust-lang, process"><title>abstutil::process - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../abstutil/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module process</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../index.html'>abstutil</a></p><script>window.sidebarCurrent = {name: 'process', 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/abstutil/process.rs.html#1-16' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>abstutil</a>::<wbr><a class="mod" href=''>process</a></span></h1><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||||
|
<table><tr class='module-item'><td><a class="fn" href="fn.must_run_cmd.html" title='abstutil::process::must_run_cmd fn'>must_run_cmd</a></td><td class='docblock-short'><p>Runs a command, asserts success. STDOUT and STDERR aren't touched.</p>
|
||||||
|
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "abstutil";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
1
rustdoc/abstutil/process/sidebar-items.js
Normal file
1
rustdoc/abstutil/process/sidebar-items.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
initSidebarItems({"fn":[["must_run_cmd","Runs a command, asserts success. STDOUT and STDERR aren't touched."]]});
|
@ -1 +1 @@
|
|||||||
initSidebarItems({"constant":[["PROGRESS_FREQUENCY_SECONDS",""]],"enum":[["Parallelism",""]],"fn":[["basename",""],["clamp",""],["contains_duplicates",""],["delete_file","Idempotent"],["deserialize_btreemap","Deserializes a BTreeMap from a list of tuples. Necessary when the keys are structs; see https://github.com/serde-rs/json/issues/402."],["deserialize_hashmap","Deserializes a HashMap from a list of tuples."],["deserialize_multimap","Deserializes a MultiMap."],["deserialize_usize","Deserializes a `usize` from a `u32`."],["elapsed_seconds",""],["file_exists",""],["find_next_file",""],["find_prev_file","Keeps file extensions"],["from_binary","Deserializes an object from the bincode format."],["from_json","Deserializes an object from a JSON string."],["list_all_objects","Just list all things from a directory, return sorted by name, with file extension removed."],["list_dir","Returns full paths"],["load_all_objects","Load all serialized things from a directory, return sorted by name, with file extension removed. Detects JSON or binary. Filters out broken files."],["maybe_read_binary",""],["maybe_read_json",""],["parent_path",""],["path",""],["path_all_edits",""],["path_all_maps",""],["path_all_raw_maps",""],["path_all_saves",""],["path_all_scenarios",""],["path_camera_state",""],["path_edits",""],["path_map",""],["path_popdat",""],["path_prebaked_results",""],["path_raw_map",""],["path_save",""],["path_scenario",""],["plain_list_names",""],["prettyprint_time",""],["prettyprint_usize",""],["read_binary",""],["read_json",""],["read_object",""],["retain_btreemap",""],["retain_btreeset",""],["serialize_btreemap","Serializes a BTreeMap as a list of tuples. Necessary when the keys are structs; see https://github.com/serde-rs/json/issues/402."],["serialize_hashmap","Serializes a HashMap as a list of tuples, first sorting by the keys. This ensures the serialized form is deterministic."],["serialize_multimap","Serializes a MultiMap."],["serialize_usize","Serializes a `usize` as a `u32` to save space. Useful when you need `usize` for indexing, but the values don't exceed 2^32."],["serialized_size_bytes","The number of bytes for an object serialized to bincode."],["slurp_file",""],["to_json","Stringifies an object to nicely formatted JSON."],["to_json_terse","Stringifies an object to terse JSON."],["wraparound_get",""],["write_binary",""],["write_json",""]],"mod":[["abst_data",""],["abst_paths","Generate paths for different A/B Street files"],["cli",""],["collections",""],["io",""],["io_native","Normal file IO using the filesystem"],["serde",""],["time",""],["utils",""]],"struct":[["CmdArgs",""],["Counter",""],["Entry","A single file"],["FileWithProgress",""],["FixedMap","A drop-in replacement for `BTreeMap`, where the keys have the property of being array indices. Some values may be missing. Much more efficient at operations on individual objects, because it just becomes a simple array lookup."],["Manifest","A list of all canonical data files for A/B Street that're uploaded somewhere. The file formats are tied to the latest version of the git repo. Players use the updater crate to sync these files with local copies."],["MultiMap",""],["Tags","Convenience functions around a string->string map"],["Timer","Hierarchial magic"],["VecMap","Use when your key is just PartialEq, not Ord or Hash."]],"trait":[["IndexableKey","Use with `FixedMap`. From a particular key, extract a `usize`. These values should be roughly contiguous; the space used by the `FixedMap` will be `O(n)` with respect to the largest value returned here."],["TimerSink",""]]});
|
initSidebarItems({"constant":[["PROGRESS_FREQUENCY_SECONDS",""]],"enum":[["Parallelism",""]],"fn":[["basename",""],["clamp",""],["contains_duplicates",""],["delete_file","Idempotent"],["deserialize_btreemap","Deserializes a BTreeMap from a list of tuples. Necessary when the keys are structs; see https://github.com/serde-rs/json/issues/402."],["deserialize_hashmap","Deserializes a HashMap from a list of tuples."],["deserialize_multimap","Deserializes a MultiMap."],["deserialize_usize","Deserializes a `usize` from a `u32`."],["elapsed_seconds",""],["file_exists",""],["find_next_file",""],["find_prev_file","Keeps file extensions"],["from_binary","Deserializes an object from the bincode format."],["from_json","Deserializes an object from a JSON string."],["list_all_objects","Just list all things from a directory, return sorted by name, with file extension removed."],["list_dir","Returns full paths"],["load_all_objects","Load all serialized things from a directory, return sorted by name, with file extension removed. Detects JSON or binary. Filters out broken files."],["maybe_read_binary",""],["maybe_read_json",""],["must_run_cmd","Runs a command, asserts success. STDOUT and STDERR aren't touched."],["parent_path",""],["path",""],["path_all_edits",""],["path_all_maps",""],["path_all_raw_maps",""],["path_all_saves",""],["path_all_scenarios",""],["path_camera_state",""],["path_edits",""],["path_map",""],["path_popdat",""],["path_prebaked_results",""],["path_raw_map",""],["path_save",""],["path_scenario",""],["plain_list_names",""],["prettyprint_time",""],["prettyprint_usize",""],["read_binary",""],["read_json",""],["read_object",""],["retain_btreemap",""],["retain_btreeset",""],["serialize_btreemap","Serializes a BTreeMap as a list of tuples. Necessary when the keys are structs; see https://github.com/serde-rs/json/issues/402."],["serialize_hashmap","Serializes a HashMap as a list of tuples, first sorting by the keys. This ensures the serialized form is deterministic."],["serialize_multimap","Serializes a MultiMap."],["serialize_usize","Serializes a `usize` as a `u32` to save space. Useful when you need `usize` for indexing, but the values don't exceed 2^32."],["serialized_size_bytes","The number of bytes for an object serialized to bincode."],["slurp_file",""],["to_json","Stringifies an object to nicely formatted JSON."],["to_json_terse","Stringifies an object to terse JSON."],["wraparound_get",""],["write_binary",""],["write_json",""]],"mod":[["abst_data",""],["abst_paths","Generate paths for different A/B Street files"],["cli",""],["collections",""],["io",""],["io_native","Normal file IO using the filesystem"],["process",""],["serde",""],["time",""],["utils",""]],"struct":[["CmdArgs",""],["Counter",""],["Entry","A single file"],["FileWithProgress",""],["FixedMap","A drop-in replacement for `BTreeMap`, where the keys have the property of being array indices. Some values may be missing. Much more efficient at operations on individual objects, because it just becomes a simple array lookup."],["Manifest","A list of all canonical data files for A/B Street that're uploaded somewhere. The file formats are tied to the latest version of the git repo. Players use the updater crate to sync these files with local copies."],["MultiMap",""],["Tags","Convenience functions around a string->string map"],["Timer","Hierarchial magic"],["VecMap","Use when your key is just PartialEq, not Ord or Hash."]],"trait":[["IndexableKey","Use with `FixedMap`. From a particular key, extract a `usize`. These values should be roughly contiguous; the space used by the `FixedMap` will be `O(n)` with respect to the largest value returned here."],["TimerSink",""]]});
|
@ -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="List of all items in this crate"><meta name="keywords" content="rust, rustlang, rust-lang"><title>List of all items in this crate</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../extract_cities/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Crate extract_cities</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>
|
<!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="List of all items in this crate"><meta name="keywords" content="rust, rustlang, rust-lang"><title>List of all items in this crate</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../extract_cities/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Crate extract_cities</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>
|
<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>
|
||||||
<span class='in-band'>List of all items</span></h1><h3 id='Functions'>Functions</h3><ul class='functions docblock'><li><a href='fn.main.html'>main</a></li><li><a href='fn.run.html'>run</a></li><li><a href='fn.write_osmosis_polygon.html'>write_osmosis_polygon</a></li></ul></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "extract_cities";</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='Functions'>Functions</h3><ul class='functions docblock'><li><a href='fn.main.html'>main</a></li></ul></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "extract_cities";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
@ -1,2 +1,2 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `main` fn in crate `extract_cities`."><meta name="keywords" content="rust, rustlang, rust-lang, main"><title>extract_cities::main - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../extract_cities/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'>extract_cities</a></p><script>window.sidebarCurrent = {name: 'main', 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>
|
<!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 `main` fn in crate `extract_cities`."><meta name="keywords" content="rust, rustlang, rust-lang, main"><title>extract_cities::main - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../extract_cities/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'>extract_cities</a></p><script>window.sidebarCurrent = {name: 'main', 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/extract_cities/extract_cities.rs.html#17-68' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='index.html'>extract_cities</a>::<wbr><a class="fn" href=''>main</a></span></h1><pre class='rust fn'>fn main()</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "extract_cities";</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/extract_cities/extract_cities.rs.html#15-65' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='index.html'>extract_cities</a>::<wbr><a class="fn" href=''>main</a></span></h1><pre class='rust fn'>fn main()</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "extract_cities";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
@ -1,2 +0,0 @@
|
|||||||
<!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 `run` fn in crate `extract_cities`."><meta name="keywords" content="rust, rustlang, rust-lang, run"><title>extract_cities::run - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../extract_cities/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'>extract_cities</a></p><script>window.sidebarCurrent = {name: 'run', 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/extract_cities/extract_cities.rs.html#85-97' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='index.html'>extract_cities</a>::<wbr><a class="fn" href=''>run</a></span></h1><pre class='rust fn'>fn run(cmd: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/std/process/struct.Command.html" title="struct std::process::Command">Command</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "extract_cities";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
|
@ -1,2 +0,0 @@
|
|||||||
<!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 `write_osmosis_polygon` fn in crate `extract_cities`."><meta name="keywords" content="rust, rustlang, rust-lang, write_osmosis_polygon"><title>extract_cities::write_osmosis_polygon - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../extract_cities/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'>extract_cities</a></p><script>window.sidebarCurrent = {name: 'write_osmosis_polygon', 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/extract_cities/extract_cities.rs.html#71-81' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='index.html'>extract_cities</a>::<wbr><a class="fn" href=''>write_osmosis_polygon</a></span></h1><pre class='rust fn'>fn write_osmosis_polygon(path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, pts: <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="../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "extract_cities";</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 `extract_cities` crate."><meta name="keywords" content="rust, rustlang, rust-lang, extract_cities"><title>extract_cities - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../extract_cities/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Crate extract_cities</p><div class='block version'><p>Version 0.1.0</p></div><div class="sidebar-elems"><a id='all-types' href='all.html'><p>See all extract_cities's items</p></a><div class="block items"><ul><li><a href="#functions">Functions</a></li></ul></div><p class='location'></p><script>window.sidebarCurrent = {name: 'extract_cities', ty: 'mod', relpath: '../'};</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>
|
<!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 `extract_cities` crate."><meta name="keywords" content="rust, rustlang, rust-lang, extract_cities"><title>extract_cities - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../extract_cities/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Crate extract_cities</p><div class='block version'><p>Version 0.1.0</p></div><div class="sidebar-elems"><a id='all-types' href='all.html'><p>See all extract_cities's items</p></a><div class="block items"><ul><li><a href="#functions">Functions</a></li></ul></div><p class='location'></p><script>window.sidebarCurrent = {name: 'extract_cities', ty: 'mod', relpath: '../'};</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/extract_cities/extract_cities.rs.html#1-97' title='goto source code'>[src]</a></span><span class='in-band'>Crate <a class="mod" href=''>extract_cities</a></span></h1><div class='docblock'><p>Extracts all cities from a large .osm file.</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/extract_cities/extract_cities.rs.html#1-65' title='goto source code'>[src]</a></span><span class='in-band'>Crate <a class="mod" href=''>extract_cities</a></span></h1><div class='docblock'><p>Extracts all cities from a large .osm file.</p>
|
||||||
<ol>
|
<ol>
|
||||||
<li>Reads a large .osm file</li>
|
<li>Reads a large .osm file</li>
|
||||||
<li>Finds all boundary relations representing cities</li>
|
<li>Finds all boundary relations representing cities</li>
|
||||||
@ -9,4 +9,4 @@
|
|||||||
<p>This tool writes all output files (.poly boundaries and .osm extracts) in the current
|
<p>This tool writes all output files (.poly boundaries and .osm extracts) in the current
|
||||||
directory!</p>
|
directory!</p>
|
||||||
</div><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
</div><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||||
<table><tr class='module-item'><td><a class="fn" href="fn.main.html" title='extract_cities::main fn'>main</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.run.html" title='extract_cities::run fn'>run</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.write_osmosis_polygon.html" title='extract_cities::write_osmosis_polygon fn'>write_osmosis_polygon</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 = "extract_cities";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
<table><tr class='module-item'><td><a class="fn" href="fn.main.html" title='extract_cities::main fn'>main</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 = "extract_cities";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
@ -1 +1 @@
|
|||||||
initSidebarItems({"fn":[["main",""],["run",""],["write_osmosis_polygon",""]]});
|
initSidebarItems({"fn":[["main",""]]});
|
File diff suppressed because one or more lines are too long
@ -66,8 +66,8 @@
|
|||||||
</div><h4 id='method.draw-3' class="method hidden"><code>fn <a href='#method.draw' class='fnname'>draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class='srclink' href='../../src/game/common/isochrone.rs.html#55-58' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
</div><h4 id='method.draw-3' class="method hidden"><code>fn <a href='#method.draw' class='fnname'>draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class='srclink' href='../../src/game/common/isochrone.rs.html#55-58' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||||
</div><h4 id='method.draw_baselayer-2' 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.draw_baselayer-2' 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-2' 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><h4 id='method.on_destroy-2' 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><h3 id='impl-State%3CApp%3E-20' class='impl'><code class='in-band'>impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href='#impl-State%3CApp%3E-20' class='anchor'></a><a class='srclink' href='../../src/game/devtools/polygon.rs.html#52-148' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.event-20' class="method hidden"><code>fn <a href='#method.event' class='fnname'>event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class='srclink' href='../../src/game/devtools/polygon.rs.html#53-107' 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></div><h3 id='impl-State%3CApp%3E-20' class='impl'><code class='in-band'>impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href='#impl-State%3CApp%3E-20' class='anchor'></a><a class='srclink' href='../../src/game/devtools/polygon.rs.html#49-149' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.event-20' class="method hidden"><code>fn <a href='#method.event' class='fnname'>event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class='srclink' href='../../src/game/devtools/polygon.rs.html#50-108' 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-21' class="method hidden"><code>fn <a href='#method.draw' class='fnname'>draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class='srclink' href='../../src/game/devtools/polygon.rs.html#109-147' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
</div><h4 id='method.draw-21' class="method hidden"><code>fn <a href='#method.draw' class='fnname'>draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class='srclink' href='../../src/game/devtools/polygon.rs.html#110-148' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||||
</div><h4 id='method.draw_baselayer-20' 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.draw_baselayer-20' 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-20' 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><h4 id='method.on_destroy-20' 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><h3 id='impl-State%3CApp%3E-21' class='impl'><code class='in-band'>impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/devtools/scenario/struct.ScenarioManager.html" title="struct game::devtools::scenario::ScenarioManager">ScenarioManager</a></code><a href='#impl-State%3CApp%3E-21' class='anchor'></a><a class='srclink' href='../../src/game/devtools/scenario.rs.html#88-120' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.event-21' class="method hidden"><code>fn <a href='#method.event' class='fnname'>event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class='srclink' href='../../src/game/devtools/scenario.rs.html#89-109' 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></div><h3 id='impl-State%3CApp%3E-21' class='impl'><code class='in-band'>impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/devtools/scenario/struct.ScenarioManager.html" title="struct game::devtools::scenario::ScenarioManager">ScenarioManager</a></code><a href='#impl-State%3CApp%3E-21' class='anchor'></a><a class='srclink' href='../../src/game/devtools/scenario.rs.html#88-120' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.event-21' class="method hidden"><code>fn <a href='#method.event' class='fnname'>event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class='srclink' href='../../src/game/devtools/scenario.rs.html#89-109' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||||
|
@ -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 `LAST_PLACED_POINT` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, LAST_PLACED_POINT"><title>game::devtools::polygon::LAST_PLACED_POINT - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a></p><script>window.sidebarCurrent = {name: 'LAST_PLACED_POINT', 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>
|
<!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 `LAST_PLACED_POINT` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, LAST_PLACED_POINT"><title>game::devtools::polygon::LAST_PLACED_POINT - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a></p><script>window.sidebarCurrent = {name: 'LAST_PLACED_POINT', 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/devtools/polygon.rs.html#19' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="constant" href=''>LAST_PLACED_POINT</a></span></h1><pre class='rust const'>const LAST_PLACED_POINT: 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>
|
<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/devtools/polygon.rs.html#16' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="constant" href=''>LAST_PLACED_POINT</a></span></h1><pre class='rust const'>const LAST_PLACED_POINT: 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,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 `POINT_COLOR` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, POINT_COLOR"><title>game::devtools::polygon::POINT_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="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a></p><script>window.sidebarCurrent = {name: 'POINT_COLOR', 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>
|
<!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 `POINT_COLOR` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, POINT_COLOR"><title>game::devtools::polygon::POINT_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="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a></p><script>window.sidebarCurrent = {name: 'POINT_COLOR', 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/devtools/polygon.rs.html#16' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="constant" href=''>POINT_COLOR</a></span></h1><pre class='rust const'>const POINT_COLOR: 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>
|
<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/devtools/polygon.rs.html#13' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="constant" href=''>POINT_COLOR</a></span></h1><pre class='rust const'>const POINT_COLOR: 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,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 `POINT_RADIUS` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, POINT_RADIUS"><title>game::devtools::polygon::POINT_RADIUS - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a></p><script>window.sidebarCurrent = {name: 'POINT_RADIUS', 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>
|
<!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 `POINT_RADIUS` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, POINT_RADIUS"><title>game::devtools::polygon::POINT_RADIUS - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a></p><script>window.sidebarCurrent = {name: 'POINT_RADIUS', 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/devtools/polygon.rs.html#14' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="constant" href=''>POINT_RADIUS</a></span></h1><pre class='rust const'>const POINT_RADIUS: <a class="struct" href="../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/game/devtools/polygon.rs.html#11' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="constant" href=''>POINT_RADIUS</a></span></h1><pre class='rust const'>const POINT_RADIUS: <a class="struct" href="../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,2 +1,2 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `POINT_TO_MOVE` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, POINT_TO_MOVE"><title>game::devtools::polygon::POINT_TO_MOVE - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a></p><script>window.sidebarCurrent = {name: 'POINT_TO_MOVE', 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>
|
<!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 `POINT_TO_MOVE` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, POINT_TO_MOVE"><title>game::devtools::polygon::POINT_TO_MOVE - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a></p><script>window.sidebarCurrent = {name: 'POINT_TO_MOVE', 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/devtools/polygon.rs.html#18' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="constant" href=''>POINT_TO_MOVE</a></span></h1><pre class='rust const'>const POINT_TO_MOVE: 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>
|
<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/devtools/polygon.rs.html#15' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="constant" href=''>POINT_TO_MOVE</a></span></h1><pre class='rust const'>const POINT_TO_MOVE: 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,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 `POLYGON_COLOR` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, POLYGON_COLOR"><title>game::devtools::polygon::POLYGON_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="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a></p><script>window.sidebarCurrent = {name: 'POLYGON_COLOR', 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>
|
<!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 `POLYGON_COLOR` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, POLYGON_COLOR"><title>game::devtools::polygon::POLYGON_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="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a></p><script>window.sidebarCurrent = {name: 'POLYGON_COLOR', 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/devtools/polygon.rs.html#17' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="constant" href=''>POLYGON_COLOR</a></span></h1><pre class='rust const'>const POLYGON_COLOR: 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>
|
<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/devtools/polygon.rs.html#14' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="constant" href=''>POLYGON_COLOR</a></span></h1><pre class='rust const'>const POLYGON_COLOR: 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,2 +0,0 @@
|
|||||||
<!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 `save_as_osmosis` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, save_as_osmosis"><title>game::devtools::polygon::save_as_osmosis - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a></p><script>window.sidebarCurrent = {name: 'save_as_osmosis', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
|
||||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/game/devtools/polygon.rs.html#151-169' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="fn" href=''>save_as_osmosis</a></span></h1><pre class='rust fn'>fn save_as_osmosis(name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, pts: &<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="../../../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
|
@ -1,5 +1,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 `polygon` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, polygon"><title>game::devtools::polygon - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module polygon</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</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'>game</a>::<wbr><a href='../index.html'>devtools</a></p><script>window.sidebarCurrent = {name: 'polygon', 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>
|
<!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 `polygon` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, polygon"><title>game::devtools::polygon - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module polygon</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#constants">Constants</a></li></ul></div><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a></p><script>window.sidebarCurrent = {name: 'polygon', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/game/devtools/polygon.rs.html#1-169' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a class="mod" href=''>polygon</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/game/devtools/polygon.rs.html#1-149' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a class="mod" href=''>polygon</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.PolygonEditor.html" title='game::devtools::polygon::PolygonEditor struct'>PolygonEditor</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="struct" href="struct.PolygonEditor.html" title='game::devtools::polygon::PolygonEditor struct'>PolygonEditor</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.LAST_PLACED_POINT.html" title='game::devtools::polygon::LAST_PLACED_POINT constant'>LAST_PLACED_POINT</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.POINT_COLOR.html" title='game::devtools::polygon::POINT_COLOR constant'>POINT_COLOR</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.POINT_RADIUS.html" title='game::devtools::polygon::POINT_RADIUS constant'>POINT_RADIUS</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.POINT_TO_MOVE.html" title='game::devtools::polygon::POINT_TO_MOVE constant'>POINT_TO_MOVE</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.POLYGON_COLOR.html" title='game::devtools::polygon::POLYGON_COLOR constant'>POLYGON_COLOR</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="constant" href="constant.LAST_PLACED_POINT.html" title='game::devtools::polygon::LAST_PLACED_POINT constant'>LAST_PLACED_POINT</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.POINT_COLOR.html" title='game::devtools::polygon::POINT_COLOR constant'>POINT_COLOR</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.POINT_RADIUS.html" title='game::devtools::polygon::POINT_RADIUS constant'>POINT_RADIUS</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.POINT_TO_MOVE.html" title='game::devtools::polygon::POINT_TO_MOVE constant'>POINT_TO_MOVE</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.POLYGON_COLOR.html" title='game::devtools::polygon::POLYGON_COLOR constant'>POLYGON_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>
|
||||||
<table><tr class='module-item'><td><a class="fn" href="fn.save_as_osmosis.html" title='game::devtools::polygon::save_as_osmosis fn'>save_as_osmosis</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>
|
|
@ -1 +1 @@
|
|||||||
initSidebarItems({"constant":[["LAST_PLACED_POINT",""],["POINT_COLOR",""],["POINT_RADIUS",""],["POINT_TO_MOVE",""],["POLYGON_COLOR",""]],"fn":[["save_as_osmosis",""]],"struct":[["PolygonEditor",""]]});
|
initSidebarItems({"constant":[["LAST_PLACED_POINT",""],["POINT_COLOR",""],["POINT_RADIUS",""],["POINT_TO_MOVE",""],["POLYGON_COLOR",""]],"struct":[["PolygonEditor",""]]});
|
@ -1,13 +1,13 @@
|
|||||||
<!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 `PolygonEditor` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, PolygonEditor"><title>game::devtools::polygon::PolygonEditor - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc 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='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct PolygonEditor</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.mouseover_pt">mouseover_pt</a><a href="#structfield.moving_pt">moving_pt</a><a href="#structfield.name">name</a><a href="#structfield.panel">panel</a><a href="#structfield.points">points</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.new">new</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-State%3CApp%3E">State<App></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'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a></p><script>window.sidebarCurrent = {name: 'PolygonEditor', 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>
|
<!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 `PolygonEditor` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, PolygonEditor"><title>game::devtools::polygon::PolygonEditor - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc 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='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct PolygonEditor</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.mouseover_pt">mouseover_pt</a><a href="#structfield.moving_pt">moving_pt</a><a href="#structfield.name">name</a><a href="#structfield.panel">panel</a><a href="#structfield.points">points</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.new">new</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-State%3CApp%3E">State<App></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'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a></p><script>window.sidebarCurrent = {name: 'PolygonEditor', 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/game/devtools/polygon.rs.html#21-27' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="struct" href=''>PolygonEditor</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct PolygonEditor {
|
<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/devtools/polygon.rs.html#18-24' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="struct" href=''>PolygonEditor</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct PolygonEditor {
|
||||||
panel: Panel,
|
panel: Panel,
|
||||||
name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||||
points: <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="../../../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>>,
|
points: <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="../../../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>>,
|
||||||
mouseover_pt: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>,
|
mouseover_pt: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>,
|
||||||
moving_pt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
moving_pt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||||
}</pre></div><h2 id='fields' class='fields small-section-header'>
|
}</pre></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.name" class="structfield small-section-header"><a href="#structfield.name" class="anchor field"></a><code>name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.points" class="structfield small-section-header"><a href="#structfield.points" class="anchor field"></a><code>points: <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="../../../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>></code></span><span id="structfield.mouseover_pt" class="structfield small-section-header"><a href="#structfield.mouseover_pt" class="anchor field"></a><code>mouseover_pt: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>></code></span><span id="structfield.moving_pt" class="structfield small-section-header"><a href="#structfield.moving_pt" class="anchor field"></a><code>moving_pt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</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="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../../src/game/devtools/polygon.rs.html#29-50' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code>pub fn <a href='#method.new' class='fnname'>new</a>(<br> ctx: &mut EventCtx<'_>, <br> name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> points: <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="../../../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</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="../../../game/app/struct.App.html" title="struct game::app::App">App</a>>></code><a class='srclink' href='../../../src/game/devtools/polygon.rs.html#30-49' 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%3CApp%3E' class='impl'><code class='in-band'>impl State<<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href='#impl-State%3CApp%3E' class='anchor'></a><a class='srclink' href='../../../src/game/devtools/polygon.rs.html#52-148' 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>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class='srclink' href='../../../src/game/devtools/polygon.rs.html#53-107' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</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.name" class="structfield small-section-header"><a href="#structfield.name" class="anchor field"></a><code>name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.points" class="structfield small-section-header"><a href="#structfield.points" class="anchor field"></a><code>points: <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="../../../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>></code></span><span id="structfield.mouseover_pt" class="structfield small-section-header"><a href="#structfield.mouseover_pt" class="anchor field"></a><code>mouseover_pt: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>></code></span><span id="structfield.moving_pt" class="structfield small-section-header"><a href="#structfield.moving_pt" class="anchor field"></a><code>moving_pt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</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="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../../src/game/devtools/polygon.rs.html#26-47' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code>pub fn <a href='#method.new' class='fnname'>new</a>(<br> ctx: &mut EventCtx<'_>, <br> name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> points: <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="../../../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</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="../../../game/app/struct.App.html" title="struct game::app::App">App</a>>></code><a class='srclink' href='../../../src/game/devtools/polygon.rs.html#27-46' 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%3CApp%3E' class='impl'><code class='in-band'>impl State<<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href='#impl-State%3CApp%3E' class='anchor'></a><a class='srclink' href='../../../src/game/devtools/polygon.rs.html#49-149' 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>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class='srclink' href='../../../src/game/devtools/polygon.rs.html#50-108' 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<'_>, app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class='srclink' href='../../../src/game/devtools/polygon.rs.html#109-147' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
</div><h4 id='method.draw' class="method hidden"><code>fn <a href='#method.draw' class='fnname'>draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class='srclink' href='../../../src/game/devtools/polygon.rs.html#110-148' 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.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><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="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</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="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</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="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</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="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</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="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</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>
|
</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="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</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="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</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="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</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="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</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="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</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,3 +1,3 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `BUILT_TIME_UTC` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>game::pregame::built_info::BUILT_TIME_UTC - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a></p><script>window.sidebarCurrent = {name: 'BUILT_TIME_UTC', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `BUILT_TIME_UTC` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>game::pregame::built_info::BUILT_TIME_UTC - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a></p><script>window.sidebarCurrent = {name: 'BUILT_TIME_UTC', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-e788b46a21eaee2a/out/built.rs.html#49' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a>::<wbr><a class="constant" href=''>BUILT_TIME_UTC</a></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Mon, 26 Oct 2020 20:57:44 +0000";</pre><div class='docblock'><p>The built-time in RFC2822, UTC</p>
|
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-e788b46a21eaee2a/out/built.rs.html#49' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a>::<wbr><a class="constant" href=''>BUILT_TIME_UTC</a></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Mon, 26 Oct 2020 21:31:31 +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>
|
</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,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 `gps` mod in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, gps"><title>geom::gps - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../geom/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module gps</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><p class='location'><a href='../index.html'>geom</a></p><script>window.sidebarCurrent = {name: 'gps', 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>
|
<!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 `gps` mod in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, gps"><title>geom::gps - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../geom/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module gps</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><p class='location'><a href='../index.html'>geom</a></p><script>window.sidebarCurrent = {name: 'gps', 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/geom/gps.rs.html#1-86' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>geom</a>::<wbr><a class="mod" href=''>gps</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/geom/gps.rs.html#1-101' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>geom</a>::<wbr><a class="mod" href=''>gps</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.LonLat.html" title='geom::gps::LonLat struct'>LonLat</a></td><td class='docblock-short'><p>Represents a (longitude, latitude) point.</p>
|
<table><tr class='module-item'><td><a class="struct" href="struct.LonLat.html" title='geom::gps::LonLat struct'>LonLat</a></td><td class='docblock-short'><p>Represents a (longitude, latitude) point.</p>
|
||||||
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "geom";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "geom";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,21 +1,24 @@
|
|||||||
<!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 `LonLat` struct in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, LonLat"><title>geom::gps::LonLat - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc 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='../../geom/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct LonLat</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.latitude">latitude</a><a href="#structfield.longitude">longitude</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.fast_dist">fast_dist</a><a href="#method.gps_dist">gps_dist</a><a href="#method.new">new</a><a href="#method.read_osmosis_polygon">read_osmosis_polygon</a><a href="#method.x">x</a><a href="#method.y">y</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-Deserialize%3C%27de%3E">Deserialize<'de></a><a href="#impl-Display">Display</a><a href="#impl-Eq">Eq</a><a href="#impl-Ord">Ord</a><a href="#impl-PartialEq%3CLonLat%3E">PartialEq<LonLat></a><a href="#impl-PartialOrd%3CLonLat%3E">PartialOrd<LonLat></a><a href="#impl-Serialize">Serialize</a><a href="#impl-StructuralEq">StructuralEq</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-DeserializeOwned">DeserializeOwned</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-ToString">ToString</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class='location'><a href='../index.html'>geom</a>::<wbr><a href='index.html'>gps</a></p><script>window.sidebarCurrent = {name: 'LonLat', 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>
|
<!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 `LonLat` struct in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, LonLat"><title>geom::gps::LonLat - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc 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='../../geom/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct LonLat</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.latitude">latitude</a><a href="#structfield.longitude">longitude</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.fast_dist">fast_dist</a><a href="#method.gps_dist">gps_dist</a><a href="#method.new">new</a><a href="#method.read_osmosis_polygon">read_osmosis_polygon</a><a href="#method.write_osmosis_polygon">write_osmosis_polygon</a><a href="#method.x">x</a><a href="#method.y">y</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-Deserialize%3C%27de%3E">Deserialize<'de></a><a href="#impl-Display">Display</a><a href="#impl-Eq">Eq</a><a href="#impl-Ord">Ord</a><a href="#impl-PartialEq%3CLonLat%3E">PartialEq<LonLat></a><a href="#impl-PartialOrd%3CLonLat%3E">PartialOrd<LonLat></a><a href="#impl-Serialize">Serialize</a><a href="#impl-StructuralEq">StructuralEq</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-DeserializeOwned">DeserializeOwned</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-ToString">ToString</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class='location'><a href='../index.html'>geom</a>::<wbr><a href='index.html'>gps</a></p><script>window.sidebarCurrent = {name: 'LonLat', 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/geom/gps.rs.html#13-16' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../index.html'>geom</a>::<wbr><a href='index.html'>gps</a>::<wbr><a class="struct" href=''>LonLat</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct LonLat {
|
<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/geom/gps.rs.html#13-16' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../index.html'>geom</a>::<wbr><a href='index.html'>gps</a>::<wbr><a class="struct" href=''>LonLat</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct LonLat {
|
||||||
longitude: NotNan<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>,
|
longitude: NotNan<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>,
|
||||||
latitude: NotNan<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>,
|
latitude: NotNan<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>,
|
||||||
}</pre></div><div class='docblock'><p>Represents a (longitude, latitude) point.</p>
|
}</pre></div><div class='docblock'><p>Represents a (longitude, latitude) point.</p>
|
||||||
</div><h2 id='fields' class='fields small-section-header'>
|
</div><h2 id='fields' class='fields small-section-header'>
|
||||||
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.longitude" class="structfield small-section-header"><a href="#structfield.longitude" class="anchor field"></a><code>longitude: NotNan<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>></code></span><span id="structfield.latitude" class="structfield small-section-header"><a href="#structfield.latitude" class="anchor field"></a><code>latitude: NotNan<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../src/geom/gps.rs.html#18-80' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code>pub fn <a href='#method.new' class='fnname'>new</a>(lon: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, lat: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a class='srclink' href='../../src/geom/gps.rs.html#20-25' title='goto source code'>[src]</a></h4><div class='docblock'><p>Note the order of arguments!</p>
|
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.longitude" class="structfield small-section-header"><a href="#structfield.longitude" class="anchor field"></a><code>longitude: NotNan<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>></code></span><span id="structfield.latitude" class="structfield small-section-header"><a href="#structfield.latitude" class="anchor field"></a><code>latitude: NotNan<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../src/geom/gps.rs.html#18-95' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code>pub fn <a href='#method.new' class='fnname'>new</a>(lon: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, lat: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a class='srclink' href='../../src/geom/gps.rs.html#20-25' title='goto source code'>[src]</a></h4><div class='docblock'><p>Note the order of arguments!</p>
|
||||||
</div><h4 id='method.x' class="method"><code>pub fn <a href='#method.x' class='fnname'>x</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a class='srclink' href='../../src/geom/gps.rs.html#28-30' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the longitude of this point.</p>
|
</div><h4 id='method.x' class="method"><code>pub fn <a href='#method.x' class='fnname'>x</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a class='srclink' href='../../src/geom/gps.rs.html#28-30' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the longitude of this point.</p>
|
||||||
</div><h4 id='method.y' class="method"><code>pub fn <a href='#method.y' class='fnname'>y</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a class='srclink' href='../../src/geom/gps.rs.html#33-35' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the latitude of this point.</p>
|
</div><h4 id='method.y' class="method"><code>pub fn <a href='#method.y' class='fnname'>y</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a class='srclink' href='../../src/geom/gps.rs.html#33-35' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the latitude of this point.</p>
|
||||||
</div><h4 id='method.gps_dist' class="method"><code>pub(crate) fn <a href='#method.gps_dist' class='fnname'>gps_dist</a>(self, other: <a class="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a>) -> <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a></code><a class='srclink' href='../../src/geom/gps.rs.html#38-52' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the Haversine distance to another point.</p>
|
</div><h4 id='method.gps_dist' class="method"><code>pub(crate) fn <a href='#method.gps_dist' class='fnname'>gps_dist</a>(self, other: <a class="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a>) -> <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a></code><a class='srclink' href='../../src/geom/gps.rs.html#38-52' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the Haversine distance to another point.</p>
|
||||||
</div><h4 id='method.fast_dist' class="method"><code>pub fn <a href='#method.fast_dist' class='fnname'>fast_dist</a>(self, other: <a class="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a>) -> NotNan<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>></code><a class='srclink' href='../../src/geom/gps.rs.html#55-57' title='goto source code'>[src]</a></h4><div class='docblock'><p>Pretty meaningless units, for comparing distances very roughly</p>
|
</div><h4 id='method.fast_dist' class="method"><code>pub fn <a href='#method.fast_dist' class='fnname'>fast_dist</a>(self, other: <a class="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a>) -> NotNan<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>></code><a class='srclink' href='../../src/geom/gps.rs.html#55-57' title='goto source code'>[src]</a></h4><div class='docblock'><p>Pretty meaningless units, for comparing distances very roughly</p>
|
||||||
</div><h4 id='method.read_osmosis_polygon' class="method"><code>pub fn <a href='#method.read_osmosis_polygon' class='fnname'>read_osmosis_polygon</a>(path: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</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="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html" title="trait std::error::Error">Error</a>>></code><a class='srclink' href='../../src/geom/gps.rs.html#61-79' title='goto source code'>[src]</a></h4><div class='docblock'><p>Parses a file in the https://wiki.openstreetmap.org/wiki/Osmosis/Polygon_Filter_File_Format
|
</div><h4 id='method.read_osmosis_polygon' class="method"><code>pub fn <a href='#method.read_osmosis_polygon' class='fnname'>read_osmosis_polygon</a>(path: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</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="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html" title="trait std::error::Error">Error</a>>></code><a class='srclink' href='../../src/geom/gps.rs.html#61-79' title='goto source code'>[src]</a></h4><div class='docblock'><p>Parses a file in the https://wiki.openstreetmap.org/wiki/Osmosis/Polygon_Filter_File_Format
|
||||||
and returns all points.</p>
|
and returns all points.</p>
|
||||||
|
</div><h4 id='method.write_osmosis_polygon' class="method"><code>pub fn <a href='#method.write_osmosis_polygon' class='fnname'>write_osmosis_polygon</a>(<br> path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> pts: &<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="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a>><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html" title="trait std::error::Error">Error</a>>></code><a class='srclink' href='../../src/geom/gps.rs.html#84-94' title='goto source code'>[src]</a></h4><div class='docblock'><p>Writes a set of points to a file in the
|
||||||
|
https://wiki.openstreetmap.org/wiki/Osmosis/Polygon_Filter_File_Format. The input should
|
||||||
|
be a closed ring, with the first and last point matching.</p>
|
||||||
</div></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="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../src/geom/gps.rs.html#12' 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="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a class='srclink' href='../../src/geom/gps.rs.html#12' 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></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="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../src/geom/gps.rs.html#12' 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="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a class='srclink' href='../../src/geom/gps.rs.html#12' 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><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="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Copy' class='anchor'></a><a class='srclink' href='../../src/geom/gps.rs.html#12' 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="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../../src/geom/gps.rs.html#12' 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/geom/gps.rs.html#12' 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-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="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Copy' class='anchor'></a><a class='srclink' href='../../src/geom/gps.rs.html#12' 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="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../../src/geom/gps.rs.html#12' 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/geom/gps.rs.html#12' 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-Deserialize%3C%27de%3E' class='impl'><code class='in-band'>impl<'de> <a class="trait" href="https://docs.rs/serde/1.0.116/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Deserialize%3C%27de%3E' class='anchor'></a><a class='srclink' href='../../src/geom/gps.rs.html#12' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.deserialize' class="method hidden"><code>fn <a href='https://docs.rs/serde/1.0.116/serde/de/trait.Deserialize.html#tymethod.deserialize' class='fnname'>deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="type" href="https://docs.rs/serde/1.0.116/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> __D: <a class="trait" href="https://docs.rs/serde/1.0.116/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></code><a class='srclink' href='../../src/geom/gps.rs.html#12' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.116/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
|
</div></div><h3 id='impl-Deserialize%3C%27de%3E' class='impl'><code class='in-band'>impl<'de> <a class="trait" href="https://docs.rs/serde/1.0.116/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Deserialize%3C%27de%3E' class='anchor'></a><a class='srclink' href='../../src/geom/gps.rs.html#12' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.deserialize' class="method hidden"><code>fn <a href='https://docs.rs/serde/1.0.116/serde/de/trait.Deserialize.html#tymethod.deserialize' class='fnname'>deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="type" href="https://docs.rs/serde/1.0.116/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> __D: <a class="trait" href="https://docs.rs/serde/1.0.116/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></code><a class='srclink' href='../../src/geom/gps.rs.html#12' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.116/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
|
||||||
</div></div><h3 id='impl-Display' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Display' class='anchor'></a><a class='srclink' href='../../src/geom/gps.rs.html#82-86' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt-1' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.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/geom/gps.rs.html#83-85' 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.Display.html#tymethod.fmt">Read more</a></p>
|
</div></div><h3 id='impl-Display' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Display' class='anchor'></a><a class='srclink' href='../../src/geom/gps.rs.html#97-101' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt-1' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.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/geom/gps.rs.html#98-100' 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.Display.html#tymethod.fmt">Read more</a></p>
|
||||||
</div></div><h3 id='impl-Eq' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Eq' class='anchor'></a><a class='srclink' href='../../src/geom/gps.rs.html#12' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-Ord' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Ord' class='anchor'></a><a class='srclink' href='../../src/geom/gps.rs.html#12' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.cmp' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp' class='fnname'>cmp</a>(&self, other: &<a class="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></code><a class='srclink' href='../../src/geom/gps.rs.html#12' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method returns an [<code>Ordering</code>] between <code>self</code> and <code>other</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
|
</div></div><h3 id='impl-Eq' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Eq' class='anchor'></a><a class='srclink' href='../../src/geom/gps.rs.html#12' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-Ord' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Ord' class='anchor'></a><a class='srclink' href='../../src/geom/gps.rs.html#12' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.cmp' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp' class='fnname'>cmp</a>(&self, other: &<a class="struct" href="../../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></code><a class='srclink' href='../../src/geom/gps.rs.html#12' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method returns an [<code>Ordering</code>] between <code>self</code> and <code>other</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
|
||||||
</div><h4 id='method.max' class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max' class='fnname'>max</a>(self, other: Self) -> Self</code><span class='since' title='Stable since Rust version 1.21.0'>1.21.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#593-598' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max">Read more</a></p>
|
</div><h4 id='method.max' class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max' class='fnname'>max</a>(self, other: Self) -> Self</code><span class='since' title='Stable since Rust version 1.21.0'>1.21.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#593-598' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max">Read more</a></p>
|
||||||
</div><h4 id='method.min' class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min' class='fnname'>min</a>(self, other: Self) -> Self</code><span class='since' title='Stable since Rust version 1.21.0'>1.21.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#613-618' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Compares and returns the minimum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min">Read more</a></p>
|
</div><h4 id='method.min' class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min' class='fnname'>min</a>(self, other: Self) -> Self</code><span class='since' title='Stable since Rust version 1.21.0'>1.21.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#613-618' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Compares and returns the minimum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min">Read more</a></p>
|
||||||
|
@ -1,21 +1,24 @@
|
|||||||
<!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 `LonLat` struct in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, LonLat"><title>geom::LonLat - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc 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='../geom/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct LonLat</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.latitude">latitude</a><a href="#structfield.longitude">longitude</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.fast_dist">fast_dist</a><a href="#method.gps_dist">gps_dist</a><a href="#method.new">new</a><a href="#method.read_osmosis_polygon">read_osmosis_polygon</a><a href="#method.x">x</a><a href="#method.y">y</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-Deserialize%3C%27de%3E">Deserialize<'de></a><a href="#impl-Display">Display</a><a href="#impl-Eq">Eq</a><a href="#impl-Ord">Ord</a><a href="#impl-PartialEq%3CLonLat%3E">PartialEq<LonLat></a><a href="#impl-PartialOrd%3CLonLat%3E">PartialOrd<LonLat></a><a href="#impl-Serialize">Serialize</a><a href="#impl-StructuralEq">StructuralEq</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-DeserializeOwned">DeserializeOwned</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-ToString">ToString</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class='location'><a href='index.html'>geom</a></p><script>window.sidebarCurrent = {name: 'LonLat', 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>
|
<!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 `LonLat` struct in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, LonLat"><title>geom::LonLat - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc 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='../geom/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct LonLat</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.latitude">latitude</a><a href="#structfield.longitude">longitude</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.fast_dist">fast_dist</a><a href="#method.gps_dist">gps_dist</a><a href="#method.new">new</a><a href="#method.read_osmosis_polygon">read_osmosis_polygon</a><a href="#method.write_osmosis_polygon">write_osmosis_polygon</a><a href="#method.x">x</a><a href="#method.y">y</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-Deserialize%3C%27de%3E">Deserialize<'de></a><a href="#impl-Display">Display</a><a href="#impl-Eq">Eq</a><a href="#impl-Ord">Ord</a><a href="#impl-PartialEq%3CLonLat%3E">PartialEq<LonLat></a><a href="#impl-PartialOrd%3CLonLat%3E">PartialOrd<LonLat></a><a href="#impl-Serialize">Serialize</a><a href="#impl-StructuralEq">StructuralEq</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-DeserializeOwned">DeserializeOwned</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-ToString">ToString</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class='location'><a href='index.html'>geom</a></p><script>window.sidebarCurrent = {name: 'LonLat', 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/geom/gps.rs.html#13-16' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>geom</a>::<wbr><a class="struct" href=''>LonLat</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct LonLat {
|
<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/geom/gps.rs.html#13-16' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>geom</a>::<wbr><a class="struct" href=''>LonLat</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct LonLat {
|
||||||
longitude: NotNan<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>,
|
longitude: NotNan<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>,
|
||||||
latitude: NotNan<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>,
|
latitude: NotNan<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>,
|
||||||
}</pre></div><div class='docblock'><p>Represents a (longitude, latitude) point.</p>
|
}</pre></div><div class='docblock'><p>Represents a (longitude, latitude) point.</p>
|
||||||
</div><h2 id='fields' class='fields small-section-header'>
|
</div><h2 id='fields' class='fields small-section-header'>
|
||||||
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.longitude" class="structfield small-section-header"><a href="#structfield.longitude" class="anchor field"></a><code>longitude: NotNan<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>></code></span><span id="structfield.latitude" class="structfield small-section-header"><a href="#structfield.latitude" class="anchor field"></a><code>latitude: NotNan<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/geom/gps.rs.html#18-80' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code>pub fn <a href='#method.new' class='fnname'>new</a>(lon: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, lat: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a class='srclink' href='../src/geom/gps.rs.html#20-25' title='goto source code'>[src]</a></h4><div class='docblock'><p>Note the order of arguments!</p>
|
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.longitude" class="structfield small-section-header"><a href="#structfield.longitude" class="anchor field"></a><code>longitude: NotNan<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>></code></span><span id="structfield.latitude" class="structfield small-section-header"><a href="#structfield.latitude" class="anchor field"></a><code>latitude: NotNan<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/geom/gps.rs.html#18-95' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code>pub fn <a href='#method.new' class='fnname'>new</a>(lon: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, lat: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a class='srclink' href='../src/geom/gps.rs.html#20-25' title='goto source code'>[src]</a></h4><div class='docblock'><p>Note the order of arguments!</p>
|
||||||
</div><h4 id='method.x' class="method"><code>pub fn <a href='#method.x' class='fnname'>x</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a class='srclink' href='../src/geom/gps.rs.html#28-30' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the longitude of this point.</p>
|
</div><h4 id='method.x' class="method"><code>pub fn <a href='#method.x' class='fnname'>x</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a class='srclink' href='../src/geom/gps.rs.html#28-30' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the longitude of this point.</p>
|
||||||
</div><h4 id='method.y' class="method"><code>pub fn <a href='#method.y' class='fnname'>y</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a class='srclink' href='../src/geom/gps.rs.html#33-35' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the latitude of this point.</p>
|
</div><h4 id='method.y' class="method"><code>pub fn <a href='#method.y' class='fnname'>y</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a class='srclink' href='../src/geom/gps.rs.html#33-35' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the latitude of this point.</p>
|
||||||
</div><h4 id='method.gps_dist' class="method"><code>pub(crate) fn <a href='#method.gps_dist' class='fnname'>gps_dist</a>(self, other: <a class="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a>) -> <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a></code><a class='srclink' href='../src/geom/gps.rs.html#38-52' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the Haversine distance to another point.</p>
|
</div><h4 id='method.gps_dist' class="method"><code>pub(crate) fn <a href='#method.gps_dist' class='fnname'>gps_dist</a>(self, other: <a class="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a>) -> <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a></code><a class='srclink' href='../src/geom/gps.rs.html#38-52' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the Haversine distance to another point.</p>
|
||||||
</div><h4 id='method.fast_dist' class="method"><code>pub fn <a href='#method.fast_dist' class='fnname'>fast_dist</a>(self, other: <a class="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a>) -> NotNan<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>></code><a class='srclink' href='../src/geom/gps.rs.html#55-57' title='goto source code'>[src]</a></h4><div class='docblock'><p>Pretty meaningless units, for comparing distances very roughly</p>
|
</div><h4 id='method.fast_dist' class="method"><code>pub fn <a href='#method.fast_dist' class='fnname'>fast_dist</a>(self, other: <a class="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a>) -> NotNan<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>></code><a class='srclink' href='../src/geom/gps.rs.html#55-57' title='goto source code'>[src]</a></h4><div class='docblock'><p>Pretty meaningless units, for comparing distances very roughly</p>
|
||||||
</div><h4 id='method.read_osmosis_polygon' class="method"><code>pub fn <a href='#method.read_osmosis_polygon' class='fnname'>read_osmosis_polygon</a>(path: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</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="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html" title="trait std::error::Error">Error</a>>></code><a class='srclink' href='../src/geom/gps.rs.html#61-79' title='goto source code'>[src]</a></h4><div class='docblock'><p>Parses a file in the https://wiki.openstreetmap.org/wiki/Osmosis/Polygon_Filter_File_Format
|
</div><h4 id='method.read_osmosis_polygon' class="method"><code>pub fn <a href='#method.read_osmosis_polygon' class='fnname'>read_osmosis_polygon</a>(path: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</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="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html" title="trait std::error::Error">Error</a>>></code><a class='srclink' href='../src/geom/gps.rs.html#61-79' title='goto source code'>[src]</a></h4><div class='docblock'><p>Parses a file in the https://wiki.openstreetmap.org/wiki/Osmosis/Polygon_Filter_File_Format
|
||||||
and returns all points.</p>
|
and returns all points.</p>
|
||||||
|
</div><h4 id='method.write_osmosis_polygon' class="method"><code>pub fn <a href='#method.write_osmosis_polygon' class='fnname'>write_osmosis_polygon</a>(<br> path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> pts: &<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="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a>><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html" title="trait std::error::Error">Error</a>>></code><a class='srclink' href='../src/geom/gps.rs.html#84-94' title='goto source code'>[src]</a></h4><div class='docblock'><p>Writes a set of points to a file in the
|
||||||
|
https://wiki.openstreetmap.org/wiki/Osmosis/Polygon_Filter_File_Format. The input should
|
||||||
|
be a closed ring, with the first and last point matching.</p>
|
||||||
</div></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="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/geom/gps.rs.html#12' 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="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a class='srclink' href='../src/geom/gps.rs.html#12' 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></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="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/geom/gps.rs.html#12' 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="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a class='srclink' href='../src/geom/gps.rs.html#12' 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><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="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Copy' class='anchor'></a><a class='srclink' href='../src/geom/gps.rs.html#12' 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="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/geom/gps.rs.html#12' 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/geom/gps.rs.html#12' 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-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="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Copy' class='anchor'></a><a class='srclink' href='../src/geom/gps.rs.html#12' 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="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/geom/gps.rs.html#12' 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/geom/gps.rs.html#12' 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-Deserialize%3C%27de%3E' class='impl'><code class='in-band'>impl<'de> <a class="trait" href="https://docs.rs/serde/1.0.116/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Deserialize%3C%27de%3E' class='anchor'></a><a class='srclink' href='../src/geom/gps.rs.html#12' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.deserialize' class="method hidden"><code>fn <a href='https://docs.rs/serde/1.0.116/serde/de/trait.Deserialize.html#tymethod.deserialize' class='fnname'>deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="type" href="https://docs.rs/serde/1.0.116/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> __D: <a class="trait" href="https://docs.rs/serde/1.0.116/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></code><a class='srclink' href='../src/geom/gps.rs.html#12' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.116/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
|
</div></div><h3 id='impl-Deserialize%3C%27de%3E' class='impl'><code class='in-band'>impl<'de> <a class="trait" href="https://docs.rs/serde/1.0.116/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Deserialize%3C%27de%3E' class='anchor'></a><a class='srclink' href='../src/geom/gps.rs.html#12' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.deserialize' class="method hidden"><code>fn <a href='https://docs.rs/serde/1.0.116/serde/de/trait.Deserialize.html#tymethod.deserialize' class='fnname'>deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="type" href="https://docs.rs/serde/1.0.116/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> __D: <a class="trait" href="https://docs.rs/serde/1.0.116/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></code><a class='srclink' href='../src/geom/gps.rs.html#12' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.116/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
|
||||||
</div></div><h3 id='impl-Display' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Display' class='anchor'></a><a class='srclink' href='../src/geom/gps.rs.html#82-86' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt-1' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.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/geom/gps.rs.html#83-85' 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.Display.html#tymethod.fmt">Read more</a></p>
|
</div></div><h3 id='impl-Display' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Display' class='anchor'></a><a class='srclink' href='../src/geom/gps.rs.html#97-101' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt-1' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.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/geom/gps.rs.html#98-100' 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.Display.html#tymethod.fmt">Read more</a></p>
|
||||||
</div></div><h3 id='impl-Eq' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Eq' class='anchor'></a><a class='srclink' href='../src/geom/gps.rs.html#12' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-Ord' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Ord' class='anchor'></a><a class='srclink' href='../src/geom/gps.rs.html#12' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.cmp' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp' class='fnname'>cmp</a>(&self, other: &<a class="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></code><a class='srclink' href='../src/geom/gps.rs.html#12' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method returns an [<code>Ordering</code>] between <code>self</code> and <code>other</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
|
</div></div><h3 id='impl-Eq' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Eq' class='anchor'></a><a class='srclink' href='../src/geom/gps.rs.html#12' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-Ord' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a></code><a href='#impl-Ord' class='anchor'></a><a class='srclink' href='../src/geom/gps.rs.html#12' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.cmp' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp' class='fnname'>cmp</a>(&self, other: &<a class="struct" href="../geom/struct.LonLat.html" title="struct geom::LonLat">LonLat</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></code><a class='srclink' href='../src/geom/gps.rs.html#12' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method returns an [<code>Ordering</code>] between <code>self</code> and <code>other</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
|
||||||
</div><h4 id='method.max' class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max' class='fnname'>max</a>(self, other: Self) -> Self</code><span class='since' title='Stable since Rust version 1.21.0'>1.21.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#593-598' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max">Read more</a></p>
|
</div><h4 id='method.max' class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max' class='fnname'>max</a>(self, other: Self) -> Self</code><span class='since' title='Stable since Rust version 1.21.0'>1.21.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#593-598' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max">Read more</a></p>
|
||||||
</div><h4 id='method.min' class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min' class='fnname'>min</a>(self, other: Self) -> Self</code><span class='since' title='Stable since Rust version 1.21.0'>1.21.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#613-618' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Compares and returns the minimum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min">Read more</a></p>
|
</div><h4 id='method.min' class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min' class='fnname'>min</a>(self, other: Self) -> Self</code><span class='since' title='Stable since Rust version 1.21.0'>1.21.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#613-618' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Compares and returns the minimum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min">Read more</a></p>
|
||||||
|
@ -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="List of all items in this crate"><meta name="keywords" content="rust, rustlang, rust-lang"><title>List of all items in this crate</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../importer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Crate importer</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>
|
<!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="List of all items in this crate"><meta name="keywords" content="rust, rustlang, rust-lang"><title>List of all items in this crate</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../importer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Crate importer</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>
|
<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>
|
||||||
<span class='in-band'>List of all items</span></h1><h3 id='Structs'>Structs</h3><ul class='structs docblock'><li><a href='struct.Job.html'>Job</a></li><li><a href='berlin/struct.Record.html'>berlin::Record</a></li><li><a href='configuration/struct.ImporterConfiguration.html'>configuration::ImporterConfiguration</a></li><li><a href='seattle/struct.StopTimeRecord.html'>seattle::StopTimeRecord</a></li><li><a href='seattle/struct.TripRecord.html'>seattle::TripRecord</a></li></ul><h3 id='Functions'>Functions</h3><ul class='functions docblock'><li><a href='berlin/fn.correlate_population.html'>berlin::correlate_population</a></li><li><a href='berlin/fn.distribute_residents.html'>berlin::distribute_residents</a></li><li><a href='berlin/fn.input.html'>berlin::input</a></li><li><a href='berlin/fn.osm_to_raw.html'>berlin::osm_to_raw</a></li><li><a href='configuration/fn.load_configuration.html'>configuration::load_configuration</a></li><li><a href='dependencies/fn.are_dependencies_callable.html'>dependencies::are_dependencies_callable</a></li><li><a href='dependencies/fn.is_program_callable.html'>dependencies::is_program_callable</a></li><li><a href='krakow/fn.input.html'>krakow::input</a></li><li><a href='krakow/fn.osm_to_raw.html'>krakow::osm_to_raw</a></li><li><a href='london/fn.input.html'>london::input</a></li><li><a href='london/fn.osm_to_raw.html'>london::osm_to_raw</a></li><li><a href='fn.main.html'>main</a></li><li><a href='fn.oneshot.html'>oneshot</a></li><li><a href='seattle/fn.add_gtfs_schedules.html'>seattle::add_gtfs_schedules</a></li><li><a href='seattle/fn.adjust_private_parking.html'>seattle::adjust_private_parking</a></li><li><a href='seattle/fn.input.html'>seattle::input</a></li><li><a href='seattle/fn.osm_to_raw.html'>seattle::osm_to_raw</a></li><li><a href='tel_aviv/fn.input.html'>tel_aviv::input</a></li><li><a href='tel_aviv/fn.osm_to_raw.html'>tel_aviv::osm_to_raw</a></li><li><a href='utils/fn.download.html'>utils::download</a></li><li><a href='utils/fn.download_kml.html'>utils::download_kml</a></li><li><a href='utils/fn.osmconvert.html'>utils::osmconvert</a></li><li><a href='utils/fn.raw_to_map.html'>utils::raw_to_map</a></li><li><a href='utils/fn.run.html'>utils::run</a></li><li><a href='xian/fn.input.html'>xian::input</a></li><li><a href='xian/fn.osm_to_raw.html'>xian::osm_to_raw</a></li></ul></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "importer";</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='struct.Job.html'>Job</a></li><li><a href='berlin/struct.Record.html'>berlin::Record</a></li><li><a href='configuration/struct.ImporterConfiguration.html'>configuration::ImporterConfiguration</a></li><li><a href='seattle/struct.StopTimeRecord.html'>seattle::StopTimeRecord</a></li><li><a href='seattle/struct.TripRecord.html'>seattle::TripRecord</a></li></ul><h3 id='Functions'>Functions</h3><ul class='functions docblock'><li><a href='berlin/fn.correlate_population.html'>berlin::correlate_population</a></li><li><a href='berlin/fn.distribute_residents.html'>berlin::distribute_residents</a></li><li><a href='berlin/fn.input.html'>berlin::input</a></li><li><a href='berlin/fn.osm_to_raw.html'>berlin::osm_to_raw</a></li><li><a href='configuration/fn.load_configuration.html'>configuration::load_configuration</a></li><li><a href='dependencies/fn.are_dependencies_callable.html'>dependencies::are_dependencies_callable</a></li><li><a href='dependencies/fn.is_program_callable.html'>dependencies::is_program_callable</a></li><li><a href='krakow/fn.input.html'>krakow::input</a></li><li><a href='krakow/fn.osm_to_raw.html'>krakow::osm_to_raw</a></li><li><a href='london/fn.input.html'>london::input</a></li><li><a href='london/fn.osm_to_raw.html'>london::osm_to_raw</a></li><li><a href='fn.main.html'>main</a></li><li><a href='fn.oneshot.html'>oneshot</a></li><li><a href='seattle/fn.add_gtfs_schedules.html'>seattle::add_gtfs_schedules</a></li><li><a href='seattle/fn.adjust_private_parking.html'>seattle::adjust_private_parking</a></li><li><a href='seattle/fn.input.html'>seattle::input</a></li><li><a href='seattle/fn.osm_to_raw.html'>seattle::osm_to_raw</a></li><li><a href='tel_aviv/fn.input.html'>tel_aviv::input</a></li><li><a href='tel_aviv/fn.osm_to_raw.html'>tel_aviv::osm_to_raw</a></li><li><a href='utils/fn.download.html'>utils::download</a></li><li><a href='utils/fn.download_kml.html'>utils::download_kml</a></li><li><a href='utils/fn.osmconvert.html'>utils::osmconvert</a></li><li><a href='utils/fn.raw_to_map.html'>utils::raw_to_map</a></li><li><a href='xian/fn.input.html'>xian::input</a></li><li><a href='xian/fn.osm_to_raw.html'>xian::osm_to_raw</a></li></ul></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "importer";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
@ -1,2 +1,2 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `download` fn in crate `importer`."><meta name="keywords" content="rust, rustlang, rust-lang, download"><title>importer::utils::download - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../importer/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'>importer</a>::<wbr><a href='index.html'>utils</a></p><script>window.sidebarCurrent = {name: 'download', 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>
|
<!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 `download` fn in crate `importer`."><meta name="keywords" content="rust, rustlang, rust-lang, download"><title>importer::utils::download - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../importer/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'>importer</a>::<wbr><a href='index.html'>utils</a></p><script>window.sidebarCurrent = {name: 'download', 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/importer/utils.rs.html#10-51' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>importer</a>::<wbr><a href='index.html'>utils</a>::<wbr><a class="fn" href=''>download</a></span></h1><pre class='rust fn'>pub fn download(config: &<a class="struct" href="../../importer/configuration/struct.ImporterConfiguration.html" title="struct importer::configuration::ImporterConfiguration">ImporterConfiguration</a>, output: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, url: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "importer";</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/importer/utils.rs.html#10-53' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>importer</a>::<wbr><a href='index.html'>utils</a>::<wbr><a class="fn" href=''>download</a></span></h1><pre class='rust fn'>pub fn download(config: &<a class="struct" href="../../importer/configuration/struct.ImporterConfiguration.html" title="struct importer::configuration::ImporterConfiguration">ImporterConfiguration</a>, output: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, url: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "importer";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,2 +1,2 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `download_kml` fn in crate `importer`."><meta name="keywords" content="rust, rustlang, rust-lang, download_kml"><title>importer::utils::download_kml - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../importer/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'>importer</a>::<wbr><a href='index.html'>utils</a></p><script>window.sidebarCurrent = {name: 'download_kml', 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>
|
<!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 `download_kml` fn in crate `importer`."><meta name="keywords" content="rust, rustlang, rust-lang, download_kml"><title>importer::utils::download_kml - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../importer/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'>importer</a>::<wbr><a href='index.html'>utils</a></p><script>window.sidebarCurrent = {name: 'download_kml', 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/importer/utils.rs.html#55-92' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>importer</a>::<wbr><a href='index.html'>utils</a>::<wbr><a class="fn" href=''>download_kml</a></span></h1><pre class='rust fn'>pub fn download_kml(<br> output: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> url: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> bounds: &<a class="struct" href="../../geom/bounds/struct.GPSBounds.html" title="struct geom::bounds::GPSBounds">GPSBounds</a>, <br> require_all_pts_in_bounds: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br> timer: &mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "importer";</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/importer/utils.rs.html#57-96' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>importer</a>::<wbr><a href='index.html'>utils</a>::<wbr><a class="fn" href=''>download_kml</a></span></h1><pre class='rust fn'>pub fn download_kml(<br> output: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> url: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> bounds: &<a class="struct" href="../../geom/bounds/struct.GPSBounds.html" title="struct geom::bounds::GPSBounds">GPSBounds</a>, <br> require_all_pts_in_bounds: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br> timer: &mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "importer";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,2 +1,2 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `osmconvert` fn in crate `importer`."><meta name="keywords" content="rust, rustlang, rust-lang, osmconvert"><title>importer::utils::osmconvert - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../importer/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'>importer</a>::<wbr><a href='index.html'>utils</a></p><script>window.sidebarCurrent = {name: 'osmconvert', 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>
|
<!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 `osmconvert` fn in crate `importer`."><meta name="keywords" content="rust, rustlang, rust-lang, osmconvert"><title>importer::utils::osmconvert - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../importer/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'>importer</a>::<wbr><a href='index.html'>utils</a></p><script>window.sidebarCurrent = {name: 'osmconvert', 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/importer/utils.rs.html#96-117' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>importer</a>::<wbr><a href='index.html'>utils</a>::<wbr><a class="fn" href=''>osmconvert</a></span></h1><pre class='rust fn'>pub fn osmconvert(<br> input: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> clipping_polygon: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> output: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> config: &<a class="struct" href="../../importer/configuration/struct.ImporterConfiguration.html" title="struct importer::configuration::ImporterConfiguration">ImporterConfiguration</a><br>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "importer";</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/importer/utils.rs.html#100-123' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>importer</a>::<wbr><a href='index.html'>utils</a>::<wbr><a class="fn" href=''>osmconvert</a></span></h1><pre class='rust fn'>pub fn osmconvert(<br> input: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> clipping_polygon: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> output: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> config: &<a class="struct" href="../../importer/configuration/struct.ImporterConfiguration.html" title="struct importer::configuration::ImporterConfiguration">ImporterConfiguration</a><br>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "importer";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,2 +1,2 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `raw_to_map` fn in crate `importer`."><meta name="keywords" content="rust, rustlang, rust-lang, raw_to_map"><title>importer::utils::raw_to_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 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='../../importer/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'>importer</a>::<wbr><a href='index.html'>utils</a></p><script>window.sidebarCurrent = {name: 'raw_to_map', 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>
|
<!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 `raw_to_map` fn in crate `importer`."><meta name="keywords" content="rust, rustlang, rust-lang, raw_to_map"><title>importer::utils::raw_to_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 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='../../importer/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'>importer</a>::<wbr><a href='index.html'>utils</a></p><script>window.sidebarCurrent = {name: 'raw_to_map', 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/importer/utils.rs.html#135-160' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>importer</a>::<wbr><a href='index.html'>utils</a>::<wbr><a class="fn" href=''>raw_to_map</a></span></h1><pre class='rust fn'>pub fn raw_to_map(<br> name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> build_ch: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br> keep_bldg_tags: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br> timer: &mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>) -> <a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "importer";</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/importer/utils.rs.html#126-151' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>importer</a>::<wbr><a href='index.html'>utils</a>::<wbr><a class="fn" href=''>raw_to_map</a></span></h1><pre class='rust fn'>pub fn raw_to_map(<br> name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> build_ch: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br> keep_bldg_tags: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br> timer: &mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>) -> <a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "importer";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,2 +0,0 @@
|
|||||||
<!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 `run` fn in crate `importer`."><meta name="keywords" content="rust, rustlang, rust-lang, run"><title>importer::utils::run - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../importer/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'>importer</a>::<wbr><a href='index.html'>utils</a></p><script>window.sidebarCurrent = {name: 'run', 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/importer/utils.rs.html#120-132' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>importer</a>::<wbr><a href='index.html'>utils</a>::<wbr><a class="fn" href=''>run</a></span></h1><pre class='rust fn'>fn run(cmd: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/std/process/struct.Command.html" title="struct std::process::Command">Command</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "importer";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
|
@ -1,3 +1,3 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `utils` mod in crate `importer`."><meta name="keywords" content="rust, rustlang, rust-lang, utils"><title>importer::utils - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../importer/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module utils</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../index.html'>importer</a></p><script>window.sidebarCurrent = {name: 'utils', 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>
|
<!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 `utils` mod in crate `importer`."><meta name="keywords" content="rust, rustlang, rust-lang, utils"><title>importer::utils - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../importer/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module utils</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../index.html'>importer</a></p><script>window.sidebarCurrent = {name: 'utils', 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/importer/utils.rs.html#1-160' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>importer</a>::<wbr><a class="mod" href=''>utils</a></span></h1><h2 id='functions' class='section-header'><a href="#functions">Functions</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/importer/utils.rs.html#1-151' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>importer</a>::<wbr><a class="mod" href=''>utils</a></span></h1><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||||
<table><tr class='module-item'><td><a class="fn" href="fn.download.html" title='importer::utils::download fn'>download</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.download_kml.html" title='importer::utils::download_kml fn'>download_kml</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.osmconvert.html" title='importer::utils::osmconvert fn'>osmconvert</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.raw_to_map.html" title='importer::utils::raw_to_map fn'>raw_to_map</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.run.html" title='importer::utils::run fn'>run</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 = "importer";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
<table><tr class='module-item'><td><a class="fn" href="fn.download.html" title='importer::utils::download fn'>download</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.download_kml.html" title='importer::utils::download_kml fn'>download_kml</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.osmconvert.html" title='importer::utils::osmconvert fn'>osmconvert</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.raw_to_map.html" title='importer::utils::raw_to_map fn'>raw_to_map</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 = "importer";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1 +1 @@
|
|||||||
initSidebarItems({"fn":[["download",""],["download_kml",""],["osmconvert",""],["raw_to_map",""],["run",""]]});
|
initSidebarItems({"fn":[["download",""],["download_kml",""],["osmconvert",""],["raw_to_map",""]]});
|
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
|||||||
var N = null;var sourcesIndex = {};
|
var N = null;var sourcesIndex = {};
|
||||||
sourcesIndex["abstutil"] = {"name":"","files":["abst_data.rs","abst_paths.rs","cli.rs","collections.rs","io.rs","io_native.rs","lib.rs","serde.rs","time.rs","utils.rs"]};
|
sourcesIndex["abstutil"] = {"name":"","files":["abst_data.rs","abst_paths.rs","cli.rs","collections.rs","io.rs","io_native.rs","lib.rs","process.rs","serde.rs","time.rs","utils.rs"]};
|
||||||
sourcesIndex["convert_osm"] = {"name":"","files":["clip.rs","extract.rs","lib.rs","osm_geom.rs","parking.rs","reader.rs","snappy.rs","split_ways.rs","srtm.rs","transit.rs"]};
|
sourcesIndex["convert_osm"] = {"name":"","files":["clip.rs","extract.rs","lib.rs","osm_geom.rs","parking.rs","reader.rs","snappy.rs","split_ways.rs","srtm.rs","transit.rs"]};
|
||||||
sourcesIndex["dump_map"] = {"name":"","files":["dump_map.rs"]};
|
sourcesIndex["dump_map"] = {"name":"","files":["dump_map.rs"]};
|
||||||
sourcesIndex["dump_scenario"] = {"name":"","files":["dump_scenario.rs"]};
|
sourcesIndex["dump_scenario"] = {"name":"","files":["dump_scenario.rs"]};
|
||||||
|
@ -37,6 +37,8 @@
|
|||||||
<span id="36">36</span>
|
<span id="36">36</span>
|
||||||
<span id="37">37</span>
|
<span id="37">37</span>
|
||||||
<span id="38">38</span>
|
<span id="38">38</span>
|
||||||
|
<span id="39">39</span>
|
||||||
|
<span id="40">40</span>
|
||||||
</pre><div class="example-wrap"><pre class="rust ">
|
</pre><div class="example-wrap"><pre class="rust ">
|
||||||
<span class="doccomment">//! The contents of this crate need to be organized better:</span>
|
<span class="doccomment">//! The contents of this crate need to be organized better:</span>
|
||||||
<span class="doccomment">//!</span>
|
<span class="doccomment">//!</span>
|
||||||
@ -63,6 +65,7 @@
|
|||||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident">abst_paths</span>::<span class="kw-2">*</span>;
|
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident">abst_paths</span>::<span class="kw-2">*</span>;
|
||||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident">cli</span>::<span class="kw-2">*</span>;
|
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident">cli</span>::<span class="kw-2">*</span>;
|
||||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident">collections</span>::<span class="kw-2">*</span>;
|
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident">collections</span>::<span class="kw-2">*</span>;
|
||||||
|
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident">process</span>::<span class="kw-2">*</span>;
|
||||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident">time</span>::<span class="kw-2">*</span>;
|
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident">time</span>::<span class="kw-2">*</span>;
|
||||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident">utils</span>::<span class="kw-2">*</span>;
|
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident">utils</span>::<span class="kw-2">*</span>;
|
||||||
|
|
||||||
@ -71,6 +74,7 @@
|
|||||||
<span class="kw">mod</span> <span class="ident">cli</span>;
|
<span class="kw">mod</span> <span class="ident">cli</span>;
|
||||||
<span class="kw">mod</span> <span class="ident">collections</span>;
|
<span class="kw">mod</span> <span class="ident">collections</span>;
|
||||||
<span class="kw">mod</span> <span class="ident">io</span>;
|
<span class="kw">mod</span> <span class="ident">io</span>;
|
||||||
|
<span class="kw">mod</span> <span class="ident">process</span>;
|
||||||
<span class="kw">mod</span> <span class="ident">serde</span>;
|
<span class="kw">mod</span> <span class="ident">serde</span>;
|
||||||
<span class="kw">mod</span> <span class="ident">time</span>;
|
<span class="kw">mod</span> <span class="ident">time</span>;
|
||||||
<span class="kw">mod</span> <span class="ident">utils</span>;
|
<span class="kw">mod</span> <span class="ident">utils</span>;
|
||||||
|
36
rustdoc/src/abstutil/process.rs.html
Normal file
36
rustdoc/src/abstutil/process.rs.html
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<!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="Source to the Rust file `abstutil/src/process.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>process.rs.html -- source</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc source"><!--[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='../../abstutil/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></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"><pre class="line-numbers"><span id="1"> 1</span>
|
||||||
|
<span id="2"> 2</span>
|
||||||
|
<span id="3"> 3</span>
|
||||||
|
<span id="4"> 4</span>
|
||||||
|
<span id="5"> 5</span>
|
||||||
|
<span id="6"> 6</span>
|
||||||
|
<span id="7"> 7</span>
|
||||||
|
<span id="8"> 8</span>
|
||||||
|
<span id="9"> 9</span>
|
||||||
|
<span id="10">10</span>
|
||||||
|
<span id="11">11</span>
|
||||||
|
<span id="12">12</span>
|
||||||
|
<span id="13">13</span>
|
||||||
|
<span id="14">14</span>
|
||||||
|
<span id="15">15</span>
|
||||||
|
<span id="16">16</span>
|
||||||
|
</pre><div class="example-wrap"><pre class="rust ">
|
||||||
|
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">process</span>::<span class="ident">Command</span>;
|
||||||
|
|
||||||
|
<span class="doccomment">/// Runs a command, asserts success. STDOUT and STDERR aren't touched.</span>
|
||||||
|
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">must_run_cmd</span>(<span class="ident">cmd</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">Command</span>) {
|
||||||
|
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"- Running {:?}"</span>, <span class="ident">cmd</span>);
|
||||||
|
<span class="kw">match</span> <span class="ident">cmd</span>.<span class="ident">status</span>() {
|
||||||
|
<span class="prelude-val">Ok</span>(<span class="ident">status</span>) <span class="op">=></span> {
|
||||||
|
<span class="kw">if</span> <span class="op">!</span><span class="ident">status</span>.<span class="ident">success</span>() {
|
||||||
|
<span class="macro">panic</span><span class="macro">!</span>(<span class="string">"{:?} failed"</span>, <span class="ident">cmd</span>);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
<span class="prelude-val">Err</span>(<span class="ident">err</span>) <span class="op">=></span> {
|
||||||
|
<span class="macro">panic</span><span class="macro">!</span>(<span class="string">"Failed to run {:?}: {:?}"</span>, <span class="ident">cmd</span>, <span class="ident">err</span>);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</pre></div>
|
||||||
|
</section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "abstutil";</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>
|
@ -64,38 +64,6 @@
|
|||||||
<span id="63">63</span>
|
<span id="63">63</span>
|
||||||
<span id="64">64</span>
|
<span id="64">64</span>
|
||||||
<span id="65">65</span>
|
<span id="65">65</span>
|
||||||
<span id="66">66</span>
|
|
||||||
<span id="67">67</span>
|
|
||||||
<span id="68">68</span>
|
|
||||||
<span id="69">69</span>
|
|
||||||
<span id="70">70</span>
|
|
||||||
<span id="71">71</span>
|
|
||||||
<span id="72">72</span>
|
|
||||||
<span id="73">73</span>
|
|
||||||
<span id="74">74</span>
|
|
||||||
<span id="75">75</span>
|
|
||||||
<span id="76">76</span>
|
|
||||||
<span id="77">77</span>
|
|
||||||
<span id="78">78</span>
|
|
||||||
<span id="79">79</span>
|
|
||||||
<span id="80">80</span>
|
|
||||||
<span id="81">81</span>
|
|
||||||
<span id="82">82</span>
|
|
||||||
<span id="83">83</span>
|
|
||||||
<span id="84">84</span>
|
|
||||||
<span id="85">85</span>
|
|
||||||
<span id="86">86</span>
|
|
||||||
<span id="87">87</span>
|
|
||||||
<span id="88">88</span>
|
|
||||||
<span id="89">89</span>
|
|
||||||
<span id="90">90</span>
|
|
||||||
<span id="91">91</span>
|
|
||||||
<span id="92">92</span>
|
|
||||||
<span id="93">93</span>
|
|
||||||
<span id="94">94</span>
|
|
||||||
<span id="95">95</span>
|
|
||||||
<span id="96">96</span>
|
|
||||||
<span id="97">97</span>
|
|
||||||
</pre><div class="example-wrap"><pre class="rust ">
|
</pre><div class="example-wrap"><pre class="rust ">
|
||||||
<span class="doccomment">//! Extracts all cities from a large .osm file.</span>
|
<span class="doccomment">//! Extracts all cities from a large .osm file.</span>
|
||||||
<span class="doccomment">//!</span>
|
<span class="doccomment">//!</span>
|
||||||
@ -108,9 +76,7 @@
|
|||||||
<span class="doccomment">//! directory!</span>
|
<span class="doccomment">//! directory!</span>
|
||||||
|
|
||||||
<span class="kw">use</span> <span class="ident">abstutil</span>::{<span class="ident">CmdArgs</span>, <span class="ident">Timer</span>};
|
<span class="kw">use</span> <span class="ident">abstutil</span>::{<span class="ident">CmdArgs</span>, <span class="ident">Timer</span>};
|
||||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">GPSBounds</span>, <span class="ident">LonLat</span>};
|
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">GPSBounds</span>, <span class="ident">LonLat</span>, <span class="ident">Polygon</span>};
|
||||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">fs</span>::<span class="ident">File</span>;
|
|
||||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">io</span>::{<span class="ident">Error</span>, <span class="ident">Write</span>};
|
|
||||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">process</span>::<span class="ident">Command</span>;
|
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">process</span>::<span class="ident">Command</span>;
|
||||||
|
|
||||||
<span class="kw">fn</span> <span class="ident">main</span>() {
|
<span class="kw">fn</span> <span class="ident">main</span>() {
|
||||||
@ -141,57 +107,27 @@
|
|||||||
<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">timer</span>,
|
<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">timer</span>,
|
||||||
);
|
);
|
||||||
<span class="macro">println</span><span class="macro">!</span>(
|
<span class="macro">println</span><span class="macro">!</span>(
|
||||||
<span class="string">"Extracted {} polygons for {} from {}, keeping the largest"</span>,
|
<span class="string">"Extracted {} from {}, using the convex hull of {} polygons"</span>,
|
||||||
<span class="ident">polygons</span>.<span class="ident">len</span>(),
|
|
||||||
<span class="ident">name</span>,
|
<span class="ident">name</span>,
|
||||||
<span class="ident">id</span>
|
<span class="ident">id</span>,
|
||||||
|
<span class="ident">polygons</span>.<span class="ident">len</span>(),
|
||||||
);
|
);
|
||||||
<span class="kw">let</span> <span class="ident">largest</span> <span class="op">=</span> <span class="ident">polygons</span>
|
<span class="kw">let</span> <span class="ident">clip</span> <span class="op">=</span> <span class="ident">Polygon</span>::<span class="ident">convex_hull</span>(<span class="ident">polygons</span>);
|
||||||
.<span class="ident">into_iter</span>()
|
|
||||||
.<span class="ident">max_by_key</span>(<span class="op">|</span><span class="ident">p</span><span class="op">|</span> <span class="ident">p</span>.<span class="ident">area</span>() <span class="kw">as</span> <span class="ident">usize</span>)
|
|
||||||
.<span class="ident">unwrap</span>();
|
|
||||||
|
|
||||||
<span class="kw">let</span> <span class="ident">clipping_polygon</span> <span class="op">=</span> <span class="macro">format</span><span class="macro">!</span>(<span class="string">"{}.poly"</span>, <span class="ident">name</span>);
|
<span class="kw">let</span> <span class="ident">clipping_polygon</span> <span class="op">=</span> <span class="macro">format</span><span class="macro">!</span>(<span class="string">"{}.poly"</span>, <span class="ident">name</span>);
|
||||||
<span class="ident">write_osmosis_polygon</span>(
|
<span class="ident">LonLat</span>::<span class="ident">write_osmosis_polygon</span>(
|
||||||
<span class="kw-2">&</span><span class="ident">clipping_polygon</span>,
|
<span class="kw-2">&</span><span class="ident">clipping_polygon</span>,
|
||||||
<span class="ident">doc</span>.<span class="ident">gps_bounds</span>.<span class="ident">convert_back</span>(<span class="ident">largest</span>.<span class="ident">points</span>()),
|
<span class="kw-2">&</span><span class="ident">doc</span>.<span class="ident">gps_bounds</span>.<span class="ident">convert_back</span>(<span class="ident">clip</span>.<span class="ident">points</span>()),
|
||||||
)
|
)
|
||||||
.<span class="ident">unwrap</span>();
|
.<span class="ident">unwrap</span>();
|
||||||
|
|
||||||
<span class="ident">run</span>(<span class="ident">Command</span>::<span class="ident">new</span>(<span class="string">"osmconvert"</span>)
|
<span class="ident">abstutil</span>::<span class="ident">must_run_cmd</span>(
|
||||||
.<span class="ident">arg</span>(<span class="kw-2">&</span><span class="ident">input</span>)
|
<span class="ident">Command</span>::<span class="ident">new</span>(<span class="string">"osmconvert"</span>)
|
||||||
.<span class="ident">arg</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"-B={}"</span>, <span class="ident">clipping_polygon</span>))
|
.<span class="ident">arg</span>(<span class="kw-2">&</span><span class="ident">input</span>)
|
||||||
.<span class="ident">arg</span>(<span class="string">"--complete-ways"</span>)
|
.<span class="ident">arg</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"-B={}"</span>, <span class="ident">clipping_polygon</span>))
|
||||||
.<span class="ident">arg</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"-o={}.osm"</span>, <span class="ident">name</span>)));
|
.<span class="ident">arg</span>(<span class="string">"--complete-ways"</span>)
|
||||||
}
|
.<span class="ident">arg</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"-o={}.osm"</span>, <span class="ident">name</span>)),
|
||||||
}
|
);
|
||||||
|
|
||||||
<span class="comment">// TODO Refactor with the devtools/polygon variant and the geojson_to_osmosis tool</span>
|
|
||||||
<span class="kw">fn</span> <span class="ident">write_osmosis_polygon</span>(<span class="ident">path</span>: <span class="kw-2">&</span><span class="ident">str</span>, <span class="ident">pts</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">LonLat</span><span class="op">></span>) <span class="op">-></span> <span class="prelude-ty">Result</span><span class="op"><</span>(), <span class="ident">Error</span><span class="op">></span> {
|
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">f</span> <span class="op">=</span> <span class="ident">File</span>::<span class="ident">create</span>(<span class="ident">path</span>)<span class="question-mark">?</span>;
|
|
||||||
<span class="macro">writeln</span><span class="macro">!</span>(<span class="ident">f</span>, <span class="string">"boundary"</span>)<span class="question-mark">?</span>;
|
|
||||||
<span class="macro">writeln</span><span class="macro">!</span>(<span class="ident">f</span>, <span class="string">"1"</span>)<span class="question-mark">?</span>;
|
|
||||||
<span class="kw">for</span> <span class="ident">pt</span> <span class="kw">in</span> <span class="ident">pts</span> {
|
|
||||||
<span class="macro">writeln</span><span class="macro">!</span>(<span class="ident">f</span>, <span class="string">" {} {}"</span>, <span class="ident">pt</span>.<span class="ident">x</span>(), <span class="ident">pt</span>.<span class="ident">y</span>())<span class="question-mark">?</span>;
|
|
||||||
}
|
|
||||||
<span class="macro">writeln</span><span class="macro">!</span>(<span class="ident">f</span>, <span class="string">"END"</span>)<span class="question-mark">?</span>;
|
|
||||||
<span class="macro">writeln</span><span class="macro">!</span>(<span class="ident">f</span>, <span class="string">"END"</span>)<span class="question-mark">?</span>;
|
|
||||||
<span class="prelude-val">Ok</span>(())
|
|
||||||
}
|
|
||||||
|
|
||||||
<span class="comment">// TODO Refactor to abstutil</span>
|
|
||||||
<span class="comment">// Runs a command, asserts success. STDOUT and STDERR aren't touched.</span>
|
|
||||||
<span class="kw">fn</span> <span class="ident">run</span>(<span class="ident">cmd</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">Command</span>) {
|
|
||||||
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"- Running {:?}"</span>, <span class="ident">cmd</span>);
|
|
||||||
<span class="kw">match</span> <span class="ident">cmd</span>.<span class="ident">status</span>() {
|
|
||||||
<span class="prelude-val">Ok</span>(<span class="ident">status</span>) <span class="op">=></span> {
|
|
||||||
<span class="kw">if</span> <span class="op">!</span><span class="ident">status</span>.<span class="ident">success</span>() {
|
|
||||||
<span class="macro">panic</span><span class="macro">!</span>(<span class="string">"{:?} failed"</span>, <span class="ident">cmd</span>);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
<span class="prelude-val">Err</span>(<span class="ident">err</span>) <span class="op">=></span> {
|
|
||||||
<span class="macro">panic</span><span class="macro">!</span>(<span class="string">"Failed to run {:?}: {:?}"</span>, <span class="ident">cmd</span>, <span class="ident">err</span>);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
@ -148,30 +148,7 @@
|
|||||||
<span id="147">147</span>
|
<span id="147">147</span>
|
||||||
<span id="148">148</span>
|
<span id="148">148</span>
|
||||||
<span id="149">149</span>
|
<span id="149">149</span>
|
||||||
<span id="150">150</span>
|
|
||||||
<span id="151">151</span>
|
|
||||||
<span id="152">152</span>
|
|
||||||
<span id="153">153</span>
|
|
||||||
<span id="154">154</span>
|
|
||||||
<span id="155">155</span>
|
|
||||||
<span id="156">156</span>
|
|
||||||
<span id="157">157</span>
|
|
||||||
<span id="158">158</span>
|
|
||||||
<span id="159">159</span>
|
|
||||||
<span id="160">160</span>
|
|
||||||
<span id="161">161</span>
|
|
||||||
<span id="162">162</span>
|
|
||||||
<span id="163">163</span>
|
|
||||||
<span id="164">164</span>
|
|
||||||
<span id="165">165</span>
|
|
||||||
<span id="166">166</span>
|
|
||||||
<span id="167">167</span>
|
|
||||||
<span id="168">168</span>
|
|
||||||
<span id="169">169</span>
|
|
||||||
</pre><div class="example-wrap"><pre class="rust ">
|
</pre><div class="example-wrap"><pre class="rust ">
|
||||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">fs</span>::<span class="ident">File</span>;
|
|
||||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">io</span>::{<span class="ident">Error</span>, <span class="ident">Write</span>};
|
|
||||||
|
|
||||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Circle</span>, <span class="ident">Distance</span>, <span class="ident">LonLat</span>, <span class="ident">Pt2D</span>, <span class="ident">Ring</span>};
|
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Circle</span>, <span class="ident">Distance</span>, <span class="ident">LonLat</span>, <span class="ident">Pt2D</span>, <span class="ident">Ring</span>};
|
||||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{
|
<span class="kw">use</span> <span class="ident">widgetry</span>::{
|
||||||
<span class="ident">Btn</span>, <span class="ident">Color</span>, <span class="ident">EventCtx</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">State</span>, <span class="ident">Text</span>,
|
<span class="ident">Btn</span>, <span class="ident">Color</span>, <span class="ident">EventCtx</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">State</span>, <span class="ident">Text</span>,
|
||||||
@ -244,7 +221,11 @@
|
|||||||
}
|
}
|
||||||
<span class="string">"export as an Osmosis polygon filter"</span> <span class="op">=></span> {
|
<span class="string">"export as an Osmosis polygon filter"</span> <span class="op">=></span> {
|
||||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">points</span>.<span class="ident">len</span>() <span class="op">>=</span> <span class="number">3</span> {
|
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">points</span>.<span class="ident">len</span>() <span class="op">>=</span> <span class="number">3</span> {
|
||||||
<span class="ident">save_as_osmosis</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">name</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">points</span>).<span class="ident">unwrap</span>();
|
<span class="comment">// Have to repeat the first point</span>
|
||||||
|
<span class="self">self</span>.<span class="ident">points</span>.<span class="ident">push</span>(<span class="self">self</span>.<span class="ident">points</span>[<span class="number">0</span>]);
|
||||||
|
<span class="ident">LonLat</span>::<span class="ident">write_osmosis_polygon</span>(<span class="kw-2">&</span><span class="macro">format</span><span class="macro">!</span>(<span class="string">"{}.poly"</span>, <span class="self">self</span>.<span class="ident">name</span>), <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">points</span>)
|
||||||
|
.<span class="ident">unwrap</span>();
|
||||||
|
<span class="self">self</span>.<span class="ident">points</span>.<span class="ident">pop</span>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
<span class="kw">_</span> <span class="op">=></span> <span class="macro">unreachable</span><span class="macro">!</span>(),
|
<span class="kw">_</span> <span class="op">=></span> <span class="macro">unreachable</span><span class="macro">!</span>(),
|
||||||
@ -317,26 +298,5 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class="comment">// https://wiki.openstreetmap.org/wiki/Osmosis/Polygon_Filter_File_Format</span>
|
|
||||||
<span class="kw">fn</span> <span class="ident">save_as_osmosis</span>(<span class="ident">name</span>: <span class="kw-2">&</span><span class="ident">str</span>, <span class="ident">pts</span>: <span class="kw-2">&</span><span class="ident">Vec</span><span class="op"><</span><span class="ident">LonLat</span><span class="op">></span>) <span class="op">-></span> <span class="prelude-ty">Result</span><span class="op"><</span>(), <span class="ident">Error</span><span class="op">></span> {
|
|
||||||
<span class="kw">let</span> <span class="ident">path</span> <span class="op">=</span> <span class="macro">format</span><span class="macro">!</span>(<span class="string">"{}.poly"</span>, <span class="ident">name</span>);
|
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">f</span> <span class="op">=</span> <span class="ident">File</span>::<span class="ident">create</span>(<span class="kw-2">&</span><span class="ident">path</span>)<span class="question-mark">?</span>;
|
|
||||||
|
|
||||||
<span class="macro">writeln</span><span class="macro">!</span>(<span class="ident">f</span>, <span class="string">"{}"</span>, <span class="ident">name</span>)<span class="question-mark">?</span>;
|
|
||||||
<span class="macro">writeln</span><span class="macro">!</span>(<span class="ident">f</span>, <span class="string">"1"</span>)<span class="question-mark">?</span>;
|
|
||||||
<span class="kw">for</span> <span class="ident">gps</span> <span class="kw">in</span> <span class="ident">pts</span> {
|
|
||||||
<span class="macro">writeln</span><span class="macro">!</span>(<span class="ident">f</span>, <span class="string">" {} {}"</span>, <span class="ident">gps</span>.<span class="ident">x</span>(), <span class="ident">gps</span>.<span class="ident">y</span>())<span class="question-mark">?</span>;
|
|
||||||
}
|
|
||||||
<span class="comment">// Have to repeat the first point</span>
|
|
||||||
{
|
|
||||||
<span class="macro">writeln</span><span class="macro">!</span>(<span class="ident">f</span>, <span class="string">" {} {}"</span>, <span class="ident">pts</span>[<span class="number">0</span>].<span class="ident">x</span>(), <span class="ident">pts</span>[<span class="number">0</span>].<span class="ident">y</span>())<span class="question-mark">?</span>;
|
|
||||||
}
|
|
||||||
<span class="macro">writeln</span><span class="macro">!</span>(<span class="ident">f</span>, <span class="string">"END"</span>)<span class="question-mark">?</span>;
|
|
||||||
<span class="macro">writeln</span><span class="macro">!</span>(<span class="ident">f</span>, <span class="string">"END"</span>)<span class="question-mark">?</span>;
|
|
||||||
|
|
||||||
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"Exported {}"</span>, <span class="ident">path</span>);
|
|
||||||
<span class="prelude-val">Ok</span>(())
|
|
||||||
}
|
|
||||||
</pre></div>
|
</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>
|
</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>
|
@ -112,7 +112,7 @@
|
|||||||
<span class="doccomment">/// The output of `rustdoc -V`</span>
|
<span class="doccomment">/// The output of `rustdoc -V`</span>
|
||||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"rustdoc 1.47.0 (18bf6b4f0 2020-10-07)"</span>;
|
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"rustdoc 1.47.0 (18bf6b4f0 2020-10-07)"</span>;
|
||||||
<span class="doccomment">/// The built-time in RFC2822, UTC</span>
|
<span class="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">"Mon, 26 Oct 2020 20:57:44 +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">"Mon, 26 Oct 2020 21:31:31 +0000"</span>;
|
||||||
<span class="doccomment">/// The target architecture, given by `cfg!(target_arch)`.</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="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>
|
<span class="doccomment">/// The endianness, given by `cfg!(target_endian)`.</span>
|
||||||
|
@ -1,95 +1,110 @@
|
|||||||
<!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="Source to the Rust file `geom/src/gps.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>gps.rs.html -- source</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc source"><!--[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='../../geom/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></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>
|
<!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="Source to the Rust file `geom/src/gps.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>gps.rs.html -- source</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc source"><!--[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='../../geom/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></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"><pre class="line-numbers"><span id="1"> 1</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"><pre class="line-numbers"><span id="1"> 1</span>
|
||||||
<span id="2"> 2</span>
|
<span id="2"> 2</span>
|
||||||
<span id="3"> 3</span>
|
<span id="3"> 3</span>
|
||||||
<span id="4"> 4</span>
|
<span id="4"> 4</span>
|
||||||
<span id="5"> 5</span>
|
<span id="5"> 5</span>
|
||||||
<span id="6"> 6</span>
|
<span id="6"> 6</span>
|
||||||
<span id="7"> 7</span>
|
<span id="7"> 7</span>
|
||||||
<span id="8"> 8</span>
|
<span id="8"> 8</span>
|
||||||
<span id="9"> 9</span>
|
<span id="9"> 9</span>
|
||||||
<span id="10">10</span>
|
<span id="10"> 10</span>
|
||||||
<span id="11">11</span>
|
<span id="11"> 11</span>
|
||||||
<span id="12">12</span>
|
<span id="12"> 12</span>
|
||||||
<span id="13">13</span>
|
<span id="13"> 13</span>
|
||||||
<span id="14">14</span>
|
<span id="14"> 14</span>
|
||||||
<span id="15">15</span>
|
<span id="15"> 15</span>
|
||||||
<span id="16">16</span>
|
<span id="16"> 16</span>
|
||||||
<span id="17">17</span>
|
<span id="17"> 17</span>
|
||||||
<span id="18">18</span>
|
<span id="18"> 18</span>
|
||||||
<span id="19">19</span>
|
<span id="19"> 19</span>
|
||||||
<span id="20">20</span>
|
<span id="20"> 20</span>
|
||||||
<span id="21">21</span>
|
<span id="21"> 21</span>
|
||||||
<span id="22">22</span>
|
<span id="22"> 22</span>
|
||||||
<span id="23">23</span>
|
<span id="23"> 23</span>
|
||||||
<span id="24">24</span>
|
<span id="24"> 24</span>
|
||||||
<span id="25">25</span>
|
<span id="25"> 25</span>
|
||||||
<span id="26">26</span>
|
<span id="26"> 26</span>
|
||||||
<span id="27">27</span>
|
<span id="27"> 27</span>
|
||||||
<span id="28">28</span>
|
<span id="28"> 28</span>
|
||||||
<span id="29">29</span>
|
<span id="29"> 29</span>
|
||||||
<span id="30">30</span>
|
<span id="30"> 30</span>
|
||||||
<span id="31">31</span>
|
<span id="31"> 31</span>
|
||||||
<span id="32">32</span>
|
<span id="32"> 32</span>
|
||||||
<span id="33">33</span>
|
<span id="33"> 33</span>
|
||||||
<span id="34">34</span>
|
<span id="34"> 34</span>
|
||||||
<span id="35">35</span>
|
<span id="35"> 35</span>
|
||||||
<span id="36">36</span>
|
<span id="36"> 36</span>
|
||||||
<span id="37">37</span>
|
<span id="37"> 37</span>
|
||||||
<span id="38">38</span>
|
<span id="38"> 38</span>
|
||||||
<span id="39">39</span>
|
<span id="39"> 39</span>
|
||||||
<span id="40">40</span>
|
<span id="40"> 40</span>
|
||||||
<span id="41">41</span>
|
<span id="41"> 41</span>
|
||||||
<span id="42">42</span>
|
<span id="42"> 42</span>
|
||||||
<span id="43">43</span>
|
<span id="43"> 43</span>
|
||||||
<span id="44">44</span>
|
<span id="44"> 44</span>
|
||||||
<span id="45">45</span>
|
<span id="45"> 45</span>
|
||||||
<span id="46">46</span>
|
<span id="46"> 46</span>
|
||||||
<span id="47">47</span>
|
<span id="47"> 47</span>
|
||||||
<span id="48">48</span>
|
<span id="48"> 48</span>
|
||||||
<span id="49">49</span>
|
<span id="49"> 49</span>
|
||||||
<span id="50">50</span>
|
<span id="50"> 50</span>
|
||||||
<span id="51">51</span>
|
<span id="51"> 51</span>
|
||||||
<span id="52">52</span>
|
<span id="52"> 52</span>
|
||||||
<span id="53">53</span>
|
<span id="53"> 53</span>
|
||||||
<span id="54">54</span>
|
<span id="54"> 54</span>
|
||||||
<span id="55">55</span>
|
<span id="55"> 55</span>
|
||||||
<span id="56">56</span>
|
<span id="56"> 56</span>
|
||||||
<span id="57">57</span>
|
<span id="57"> 57</span>
|
||||||
<span id="58">58</span>
|
<span id="58"> 58</span>
|
||||||
<span id="59">59</span>
|
<span id="59"> 59</span>
|
||||||
<span id="60">60</span>
|
<span id="60"> 60</span>
|
||||||
<span id="61">61</span>
|
<span id="61"> 61</span>
|
||||||
<span id="62">62</span>
|
<span id="62"> 62</span>
|
||||||
<span id="63">63</span>
|
<span id="63"> 63</span>
|
||||||
<span id="64">64</span>
|
<span id="64"> 64</span>
|
||||||
<span id="65">65</span>
|
<span id="65"> 65</span>
|
||||||
<span id="66">66</span>
|
<span id="66"> 66</span>
|
||||||
<span id="67">67</span>
|
<span id="67"> 67</span>
|
||||||
<span id="68">68</span>
|
<span id="68"> 68</span>
|
||||||
<span id="69">69</span>
|
<span id="69"> 69</span>
|
||||||
<span id="70">70</span>
|
<span id="70"> 70</span>
|
||||||
<span id="71">71</span>
|
<span id="71"> 71</span>
|
||||||
<span id="72">72</span>
|
<span id="72"> 72</span>
|
||||||
<span id="73">73</span>
|
<span id="73"> 73</span>
|
||||||
<span id="74">74</span>
|
<span id="74"> 74</span>
|
||||||
<span id="75">75</span>
|
<span id="75"> 75</span>
|
||||||
<span id="76">76</span>
|
<span id="76"> 76</span>
|
||||||
<span id="77">77</span>
|
<span id="77"> 77</span>
|
||||||
<span id="78">78</span>
|
<span id="78"> 78</span>
|
||||||
<span id="79">79</span>
|
<span id="79"> 79</span>
|
||||||
<span id="80">80</span>
|
<span id="80"> 80</span>
|
||||||
<span id="81">81</span>
|
<span id="81"> 81</span>
|
||||||
<span id="82">82</span>
|
<span id="82"> 82</span>
|
||||||
<span id="83">83</span>
|
<span id="83"> 83</span>
|
||||||
<span id="84">84</span>
|
<span id="84"> 84</span>
|
||||||
<span id="85">85</span>
|
<span id="85"> 85</span>
|
||||||
<span id="86">86</span>
|
<span id="86"> 86</span>
|
||||||
|
<span id="87"> 87</span>
|
||||||
|
<span id="88"> 88</span>
|
||||||
|
<span id="89"> 89</span>
|
||||||
|
<span id="90"> 90</span>
|
||||||
|
<span id="91"> 91</span>
|
||||||
|
<span id="92"> 92</span>
|
||||||
|
<span id="93"> 93</span>
|
||||||
|
<span id="94"> 94</span>
|
||||||
|
<span id="95"> 95</span>
|
||||||
|
<span id="96"> 96</span>
|
||||||
|
<span id="97"> 97</span>
|
||||||
|
<span id="98"> 98</span>
|
||||||
|
<span id="99"> 99</span>
|
||||||
|
<span id="100">100</span>
|
||||||
|
<span id="101">101</span>
|
||||||
</pre><div class="example-wrap"><pre class="rust ">
|
</pre><div class="example-wrap"><pre class="rust ">
|
||||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">error</span>::<span class="ident">Error</span>;
|
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">error</span>::<span class="ident">Error</span>;
|
||||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">fmt</span>;
|
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">fmt</span>;
|
||||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">fs</span>::<span class="ident">File</span>;
|
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">fs</span>::<span class="ident">File</span>;
|
||||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">io</span>::{<span class="ident">BufRead</span>, <span class="ident">BufReader</span>};
|
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">io</span>::{<span class="ident">BufRead</span>, <span class="ident">BufReader</span>, <span class="ident">Write</span>};
|
||||||
|
|
||||||
<span class="kw">use</span> <span class="ident">ordered_float</span>::<span class="ident">NotNan</span>;
|
<span class="kw">use</span> <span class="ident">ordered_float</span>::<span class="ident">NotNan</span>;
|
||||||
<span class="kw">use</span> <span class="ident">serde</span>::{<span class="ident">Deserialize</span>, <span class="ident">Serialize</span>};
|
<span class="kw">use</span> <span class="ident">serde</span>::{<span class="ident">Deserialize</span>, <span class="ident">Serialize</span>};
|
||||||
@ -165,6 +180,21 @@
|
|||||||
}
|
}
|
||||||
<span class="prelude-val">Ok</span>(<span class="ident">pts</span>)
|
<span class="prelude-val">Ok</span>(<span class="ident">pts</span>)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<span class="doccomment">/// Writes a set of points to a file in the</span>
|
||||||
|
<span class="doccomment">/// https://wiki.openstreetmap.org/wiki/Osmosis/Polygon_Filter_File_Format. The input should</span>
|
||||||
|
<span class="doccomment">/// be a closed ring, with the first and last point matching.</span>
|
||||||
|
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">write_osmosis_polygon</span>(<span class="ident">path</span>: <span class="kw-2">&</span><span class="ident">str</span>, <span class="ident">pts</span>: <span class="kw-2">&</span><span class="ident">Vec</span><span class="op"><</span><span class="ident">LonLat</span><span class="op">></span>) <span class="op">-></span> <span class="prelude-ty">Result</span><span class="op"><</span>(), <span class="ident">Box</span><span class="op"><</span><span class="kw">dyn</span> <span class="ident">Error</span><span class="op">>></span> {
|
||||||
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">f</span> <span class="op">=</span> <span class="ident">File</span>::<span class="ident">create</span>(<span class="ident">path</span>)<span class="question-mark">?</span>;
|
||||||
|
<span class="macro">writeln</span><span class="macro">!</span>(<span class="ident">f</span>, <span class="string">"boundary"</span>)<span class="question-mark">?</span>;
|
||||||
|
<span class="macro">writeln</span><span class="macro">!</span>(<span class="ident">f</span>, <span class="string">"1"</span>)<span class="question-mark">?</span>;
|
||||||
|
<span class="kw">for</span> <span class="ident">pt</span> <span class="kw">in</span> <span class="ident">pts</span> {
|
||||||
|
<span class="macro">writeln</span><span class="macro">!</span>(<span class="ident">f</span>, <span class="string">" {} {}"</span>, <span class="ident">pt</span>.<span class="ident">x</span>(), <span class="ident">pt</span>.<span class="ident">y</span>())<span class="question-mark">?</span>;
|
||||||
|
}
|
||||||
|
<span class="macro">writeln</span><span class="macro">!</span>(<span class="ident">f</span>, <span class="string">"END"</span>)<span class="question-mark">?</span>;
|
||||||
|
<span class="macro">writeln</span><span class="macro">!</span>(<span class="ident">f</span>, <span class="string">"END"</span>)<span class="question-mark">?</span>;
|
||||||
|
<span class="prelude-val">Ok</span>(())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class="kw">impl</span> <span class="ident">fmt</span>::<span class="ident">Display</span> <span class="kw">for</span> <span class="ident">LonLat</span> {
|
<span class="kw">impl</span> <span class="ident">fmt</span>::<span class="ident">Display</span> <span class="kw">for</span> <span class="ident">LonLat</span> {
|
||||||
|
@ -150,20 +150,11 @@
|
|||||||
<span id="149">149</span>
|
<span id="149">149</span>
|
||||||
<span id="150">150</span>
|
<span id="150">150</span>
|
||||||
<span id="151">151</span>
|
<span id="151">151</span>
|
||||||
<span id="152">152</span>
|
|
||||||
<span id="153">153</span>
|
|
||||||
<span id="154">154</span>
|
|
||||||
<span id="155">155</span>
|
|
||||||
<span id="156">156</span>
|
|
||||||
<span id="157">157</span>
|
|
||||||
<span id="158">158</span>
|
|
||||||
<span id="159">159</span>
|
|
||||||
<span id="160">160</span>
|
|
||||||
</pre><div class="example-wrap"><pre class="rust ">
|
</pre><div class="example-wrap"><pre class="rust ">
|
||||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">path</span>::<span class="ident">Path</span>;
|
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">path</span>::<span class="ident">Path</span>;
|
||||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">process</span>::<span class="ident">Command</span>;
|
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">process</span>::<span class="ident">Command</span>;
|
||||||
|
|
||||||
<span class="kw">use</span> <span class="ident">abstutil</span>::<span class="ident">Timer</span>;
|
<span class="kw">use</span> <span class="ident">abstutil</span>::{<span class="ident">must_run_cmd</span>, <span class="ident">Timer</span>};
|
||||||
|
|
||||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">configuration</span>::<span class="ident">ImporterConfiguration</span>;
|
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">configuration</span>::<span class="ident">ImporterConfiguration</span>;
|
||||||
|
|
||||||
@ -181,12 +172,14 @@
|
|||||||
|
|
||||||
<span class="kw">let</span> <span class="ident">tmp</span> <span class="op">=</span> <span class="string">"tmp_output"</span>;
|
<span class="kw">let</span> <span class="ident">tmp</span> <span class="op">=</span> <span class="string">"tmp_output"</span>;
|
||||||
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"- Missing {}, so downloading {}"</span>, <span class="ident">output</span>, <span class="ident">url</span>);
|
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"- Missing {}, so downloading {}"</span>, <span class="ident">output</span>, <span class="ident">url</span>);
|
||||||
<span class="ident">run</span>(<span class="ident">Command</span>::<span class="ident">new</span>(<span class="string">"curl"</span>)
|
<span class="ident">must_run_cmd</span>(
|
||||||
.<span class="ident">arg</span>(<span class="string">"--fail"</span>)
|
<span class="ident">Command</span>::<span class="ident">new</span>(<span class="string">"curl"</span>)
|
||||||
.<span class="ident">arg</span>(<span class="string">"-L"</span>)
|
.<span class="ident">arg</span>(<span class="string">"--fail"</span>)
|
||||||
.<span class="ident">arg</span>(<span class="string">"-o"</span>)
|
.<span class="ident">arg</span>(<span class="string">"-L"</span>)
|
||||||
.<span class="ident">arg</span>(<span class="ident">tmp</span>)
|
.<span class="ident">arg</span>(<span class="string">"-o"</span>)
|
||||||
.<span class="ident">arg</span>(<span class="ident">url</span>));
|
.<span class="ident">arg</span>(<span class="ident">tmp</span>)
|
||||||
|
.<span class="ident">arg</span>(<span class="ident">url</span>),
|
||||||
|
);
|
||||||
|
|
||||||
<span class="comment">// Argh the Dropbox URL is .zip?dl=0</span>
|
<span class="comment">// Argh the Dropbox URL is .zip?dl=0</span>
|
||||||
<span class="kw">if</span> <span class="ident">url</span>.<span class="ident">contains</span>(<span class="string">".zip"</span>) {
|
<span class="kw">if</span> <span class="ident">url</span>.<span class="ident">contains</span>(<span class="string">".zip"</span>) {
|
||||||
@ -196,7 +189,7 @@
|
|||||||
<span class="ident">Path</span>::<span class="ident">new</span>(<span class="kw-2">&</span><span class="ident">output</span>).<span class="ident">parent</span>().<span class="ident">unwrap</span>().<span class="ident">display</span>().<span class="ident">to_string</span>()
|
<span class="ident">Path</span>::<span class="ident">new</span>(<span class="kw-2">&</span><span class="ident">output</span>).<span class="ident">parent</span>().<span class="ident">unwrap</span>().<span class="ident">display</span>().<span class="ident">to_string</span>()
|
||||||
};
|
};
|
||||||
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"- Unzipping into {}"</span>, <span class="ident">unzip_to</span>);
|
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"- Unzipping into {}"</span>, <span class="ident">unzip_to</span>);
|
||||||
<span class="ident">run</span>(<span class="ident">Command</span>::<span class="ident">new</span>(<span class="kw-2">&</span><span class="ident">config</span>.<span class="ident">unzip</span>).<span class="ident">arg</span>(<span class="ident">tmp</span>).<span class="ident">arg</span>(<span class="string">"-d"</span>).<span class="ident">arg</span>(<span class="ident">unzip_to</span>));
|
<span class="ident">must_run_cmd</span>(<span class="ident">Command</span>::<span class="ident">new</span>(<span class="kw-2">&</span><span class="ident">config</span>.<span class="ident">unzip</span>).<span class="ident">arg</span>(<span class="ident">tmp</span>).<span class="ident">arg</span>(<span class="string">"-d"</span>).<span class="ident">arg</span>(<span class="ident">unzip_to</span>));
|
||||||
<span class="ident">std</span>::<span class="ident">fs</span>::<span class="ident">remove_file</span>(<span class="ident">tmp</span>).<span class="ident">unwrap</span>();
|
<span class="ident">std</span>::<span class="ident">fs</span>::<span class="ident">remove_file</span>(<span class="ident">tmp</span>).<span class="ident">unwrap</span>();
|
||||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">url</span>.<span class="ident">ends_with</span>(<span class="string">".gz"</span>) {
|
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">url</span>.<span class="ident">ends_with</span>(<span class="string">".gz"</span>) {
|
||||||
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"- Gunzipping"</span>);
|
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"- Gunzipping"</span>);
|
||||||
@ -206,7 +199,7 @@
|
|||||||
<span class="kw">for</span> <span class="ident">arg</span> <span class="kw">in</span> <span class="ident">config</span>.<span class="ident">gunzip_args</span>.<span class="ident">split_ascii_whitespace</span>() {
|
<span class="kw">for</span> <span class="ident">arg</span> <span class="kw">in</span> <span class="ident">config</span>.<span class="ident">gunzip_args</span>.<span class="ident">split_ascii_whitespace</span>() {
|
||||||
<span class="ident">gunzip_cmd</span>.<span class="ident">arg</span>(<span class="ident">arg</span>);
|
<span class="ident">gunzip_cmd</span>.<span class="ident">arg</span>(<span class="ident">arg</span>);
|
||||||
}
|
}
|
||||||
<span class="ident">run</span>(<span class="ident">gunzip_cmd</span>.<span class="ident">arg</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{}.gz"</span>, <span class="ident">output</span>)));
|
<span class="ident">must_run_cmd</span>(<span class="ident">gunzip_cmd</span>.<span class="ident">arg</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{}.gz"</span>, <span class="ident">output</span>)));
|
||||||
} <span class="kw">else</span> {
|
} <span class="kw">else</span> {
|
||||||
<span class="ident">std</span>::<span class="ident">fs</span>::<span class="ident">rename</span>(<span class="ident">tmp</span>, <span class="ident">output</span>).<span class="ident">unwrap</span>();
|
<span class="ident">std</span>::<span class="ident">fs</span>::<span class="ident">rename</span>(<span class="ident">tmp</span>, <span class="ident">output</span>).<span class="ident">unwrap</span>();
|
||||||
}
|
}
|
||||||
@ -236,12 +229,14 @@
|
|||||||
<span class="ident">std</span>::<span class="ident">fs</span>::<span class="ident">copy</span>(<span class="ident">output</span>.<span class="ident">replace</span>(<span class="string">".bin"</span>, <span class="string">".kml"</span>), <span class="ident">tmp</span>).<span class="ident">unwrap</span>();
|
<span class="ident">std</span>::<span class="ident">fs</span>::<span class="ident">copy</span>(<span class="ident">output</span>.<span class="ident">replace</span>(<span class="string">".bin"</span>, <span class="string">".kml"</span>), <span class="ident">tmp</span>).<span class="ident">unwrap</span>();
|
||||||
} <span class="kw">else</span> {
|
} <span class="kw">else</span> {
|
||||||
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"- Missing {}, so downloading {}"</span>, <span class="ident">output</span>, <span class="ident">url</span>);
|
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"- Missing {}, so downloading {}"</span>, <span class="ident">output</span>, <span class="ident">url</span>);
|
||||||
<span class="ident">run</span>(<span class="ident">Command</span>::<span class="ident">new</span>(<span class="string">"curl"</span>)
|
<span class="ident">must_run_cmd</span>(
|
||||||
.<span class="ident">arg</span>(<span class="string">"--fail"</span>)
|
<span class="ident">Command</span>::<span class="ident">new</span>(<span class="string">"curl"</span>)
|
||||||
.<span class="ident">arg</span>(<span class="string">"-L"</span>)
|
.<span class="ident">arg</span>(<span class="string">"--fail"</span>)
|
||||||
.<span class="ident">arg</span>(<span class="string">"-o"</span>)
|
.<span class="ident">arg</span>(<span class="string">"-L"</span>)
|
||||||
.<span class="ident">arg</span>(<span class="ident">tmp</span>)
|
.<span class="ident">arg</span>(<span class="string">"-o"</span>)
|
||||||
.<span class="ident">arg</span>(<span class="ident">url</span>));
|
.<span class="ident">arg</span>(<span class="ident">tmp</span>)
|
||||||
|
.<span class="ident">arg</span>(<span class="ident">url</span>),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"- Extracting KML data"</span>);
|
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"- Extracting KML data"</span>);
|
||||||
@ -271,26 +266,13 @@
|
|||||||
}
|
}
|
||||||
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"- Clipping {} to {}"</span>, <span class="ident">input</span>, <span class="ident">clipping_polygon</span>);
|
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"- Clipping {} to {}"</span>, <span class="ident">input</span>, <span class="ident">clipping_polygon</span>);
|
||||||
|
|
||||||
<span class="ident">run</span>(<span class="ident">Command</span>::<span class="ident">new</span>(<span class="kw-2">&</span><span class="ident">config</span>.<span class="ident">osmconvert</span>)
|
<span class="ident">must_run_cmd</span>(
|
||||||
.<span class="ident">arg</span>(<span class="ident">input</span>)
|
<span class="ident">Command</span>::<span class="ident">new</span>(<span class="kw-2">&</span><span class="ident">config</span>.<span class="ident">osmconvert</span>)
|
||||||
.<span class="ident">arg</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"-B={}"</span>, <span class="ident">clipping_polygon</span>))
|
.<span class="ident">arg</span>(<span class="ident">input</span>)
|
||||||
.<span class="ident">arg</span>(<span class="string">"--complete-ways"</span>)
|
.<span class="ident">arg</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"-B={}"</span>, <span class="ident">clipping_polygon</span>))
|
||||||
.<span class="ident">arg</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"-o={}"</span>, <span class="ident">output</span>)));
|
.<span class="ident">arg</span>(<span class="string">"--complete-ways"</span>)
|
||||||
}
|
.<span class="ident">arg</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"-o={}"</span>, <span class="ident">output</span>)),
|
||||||
|
);
|
||||||
<span class="comment">// Runs a command, asserts success. STDOUT and STDERR aren't touched.</span>
|
|
||||||
<span class="kw">fn</span> <span class="ident">run</span>(<span class="ident">cmd</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">Command</span>) {
|
|
||||||
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"- Running {:?}"</span>, <span class="ident">cmd</span>);
|
|
||||||
<span class="kw">match</span> <span class="ident">cmd</span>.<span class="ident">status</span>() {
|
|
||||||
<span class="prelude-val">Ok</span>(<span class="ident">status</span>) <span class="op">=></span> {
|
|
||||||
<span class="kw">if</span> <span class="op">!</span><span class="ident">status</span>.<span class="ident">success</span>() {
|
|
||||||
<span class="macro">panic</span><span class="macro">!</span>(<span class="string">"{:?} failed"</span>, <span class="ident">cmd</span>);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
<span class="prelude-val">Err</span>(<span class="ident">err</span>) <span class="op">=></span> {
|
|
||||||
<span class="macro">panic</span><span class="macro">!</span>(<span class="string">"Failed to run {:?}: {:?}"</span>, <span class="ident">cmd</span>, <span class="ident">err</span>);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class="comment">// Converts a RawMap to a Map.</span>
|
<span class="comment">// Converts a RawMap to a Map.</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user