This commit is contained in:
dabreegster 2021-01-27 02:20:38 +00:00
parent 8a41371961
commit 25c3b9f9ae
10 changed files with 113 additions and 11 deletions

View File

@ -3,4 +3,4 @@
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../convert_osm/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Crate convert_osm</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!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><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">&#x2212;</span>]</a></span>
</span>
<span class="in-band">List of all items</span></h1><h3 id="Structs">Structs</h3><ul class="structs docblock"><li><a href="struct.Options.html">Options</a></li><li><a href="extract/struct.OsmExtract.html">extract::OsmExtract</a></li><li><a href="reader/struct.Document.html">reader::Document</a></li><li><a href="reader/struct.Node.html">reader::Node</a></li><li><a href="reader/struct.Relation.html">reader::Relation</a></li><li><a href="reader/struct.Way.html">reader::Way</a></li><li><a href="srtm/struct.Elevation.html">srtm::Elevation</a></li></ul><h3 id="Enums">Enums</h3><ul class="enums docblock"><li><a href="enum.OnstreetParking.html">OnstreetParking</a></li><li><a href="enum.PrivateOffstreetParking.html">PrivateOffstreetParking</a></li><li><a href="enum.PublicOffstreetParking.html">PublicOffstreetParking</a></li></ul><h3 id="Functions">Functions</h3><ul class="functions docblock"><li><a href="clip/fn.clip_map.html">clip::clip_map</a></li><li><a href="fn.convert.html">convert</a></li><li><a href="extract/fn.extract_osm.html">extract::extract_osm</a></li><li><a href="extract/fn.get_area_type.html">extract::get_area_type</a></li><li><a href="extract/fn.get_bldg_amenities.html">extract::get_bldg_amenities</a></li><li><a href="extract/fn.is_bldg.html">extract::is_bldg</a></li><li><a href="extract/fn.is_road.html">extract::is_road</a></li><li><a href="osm_geom/fn.get_multipolygon_members.html">osm_geom::get_multipolygon_members</a></li><li><a href="osm_geom/fn.glue_multipolygon.html">osm_geom::glue_multipolygon</a></li><li><a href="osm_geom/fn.glue_to_boundary.html">osm_geom::glue_to_boundary</a></li><li><a href="osm_geom/fn.multipoly_geometry.html">osm_geom::multipoly_geometry</a></li><li><a href="parking/fn.apply_parking.html">parking::apply_parking</a></li><li><a href="parking/fn.apply_private_offstreet_parking.html">parking::apply_private_offstreet_parking</a></li><li><a href="parking/fn.use_offstreet_parking.html">parking::use_offstreet_parking</a></li><li><a href="parking/fn.use_parking_hints.html">parking::use_parking_hints</a></li><li><a href="reader/fn.read.html">reader::read</a></li><li><a href="reader/fn.read_tags.html">reader::read_tags</a></li><li><a href="reader/fn.scrape_bounds.html">reader::scrape_bounds</a></li><li><a href="snappy/fn.dump_output.html">snappy::dump_output</a></li><li><a href="snappy/fn.snap_cycleways.html">snappy::snap_cycleways</a></li><li><a href="snappy/fn.v1.html">snappy::v1</a></li><li><a href="split_ways/fn.dedupe_angles.html">split_ways::dedupe_angles</a></li><li><a href="split_ways/fn.split_up_roads.html">split_ways::split_up_roads</a></li><li><a href="transit/fn.extract_route.html">transit::extract_route</a></li><li><a href="transit/fn.glue_route.html">transit::glue_route</a></li><li><a href="transit/fn.snap_bus_stops.html">transit::snap_bus_stops</a></li><li><a href="fn.use_amenities.html">use_amenities</a></li><li><a href="fn.use_elevation.html">use_elevation</a></li></ul><h3 id="Constants">Constants</h3><ul class="constants docblock"><li><a href="parking/constant.DIRECTED_ROAD_THICKNESS.html">parking::DIRECTED_ROAD_THICKNESS</a></li><li><a href="srtm/constant.GRID_DIM.html">srtm::GRID_DIM</a></li></ul></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "convert_osm";</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.Options.html">Options</a></li><li><a href="extract/struct.OsmExtract.html">extract::OsmExtract</a></li><li><a href="reader/struct.Document.html">reader::Document</a></li><li><a href="reader/struct.Node.html">reader::Node</a></li><li><a href="reader/struct.Relation.html">reader::Relation</a></li><li><a href="reader/struct.Way.html">reader::Way</a></li><li><a href="srtm/struct.Elevation.html">srtm::Elevation</a></li></ul><h3 id="Enums">Enums</h3><ul class="enums docblock"><li><a href="enum.OnstreetParking.html">OnstreetParking</a></li><li><a href="enum.PrivateOffstreetParking.html">PrivateOffstreetParking</a></li><li><a href="enum.PublicOffstreetParking.html">PublicOffstreetParking</a></li></ul><h3 id="Functions">Functions</h3><ul class="functions docblock"><li><a href="clip/fn.clip_map.html">clip::clip_map</a></li><li><a href="fn.convert.html">convert</a></li><li><a href="extract/fn.extract_osm.html">extract::extract_osm</a></li><li><a href="extract/fn.get_area_type.html">extract::get_area_type</a></li><li><a href="extract/fn.get_bldg_amenities.html">extract::get_bldg_amenities</a></li><li><a href="extract/fn.is_bldg.html">extract::is_bldg</a></li><li><a href="extract/fn.is_road.html">extract::is_road</a></li><li><a href="osm_geom/fn.get_multipolygon_members.html">osm_geom::get_multipolygon_members</a></li><li><a href="osm_geom/fn.glue_multipolygon.html">osm_geom::glue_multipolygon</a></li><li><a href="osm_geom/fn.glue_to_boundary.html">osm_geom::glue_to_boundary</a></li><li><a href="osm_geom/fn.multipoly_geometry.html">osm_geom::multipoly_geometry</a></li><li><a href="parking/fn.apply_parking.html">parking::apply_parking</a></li><li><a href="parking/fn.apply_private_offstreet_parking.html">parking::apply_private_offstreet_parking</a></li><li><a href="parking/fn.use_offstreet_parking.html">parking::use_offstreet_parking</a></li><li><a href="parking/fn.use_parking_hints.html">parking::use_parking_hints</a></li><li><a href="reader/fn.read.html">reader::read</a></li><li><a href="reader/fn.read_tags.html">reader::read_tags</a></li><li><a href="reader/fn.scrape_bounds.html">reader::scrape_bounds</a></li><li><a href="snappy/fn.dump_output.html">snappy::dump_output</a></li><li><a href="snappy/fn.snap_cycleways.html">snappy::snap_cycleways</a></li><li><a href="snappy/fn.v1.html">snappy::v1</a></li><li><a href="split_ways/fn.dedupe_angles.html">split_ways::dedupe_angles</a></li><li><a href="split_ways/fn.should_collapse_roundabout.html">split_ways::should_collapse_roundabout</a></li><li><a href="split_ways/fn.split_up_roads.html">split_ways::split_up_roads</a></li><li><a href="transit/fn.extract_route.html">transit::extract_route</a></li><li><a href="transit/fn.glue_route.html">transit::glue_route</a></li><li><a href="transit/fn.snap_bus_stops.html">transit::snap_bus_stops</a></li><li><a href="fn.use_amenities.html">use_amenities</a></li><li><a href="fn.use_elevation.html">use_elevation</a></li></ul><h3 id="Constants">Constants</h3><ul class="constants docblock"><li><a href="parking/constant.DIRECTED_ROAD_THICKNESS.html">parking::DIRECTED_ROAD_THICKNESS</a></li><li><a href="srtm/constant.GRID_DIM.html">srtm::GRID_DIM</a></li></ul></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "convert_osm";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>

View File

@ -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 `dedupe_angles` fn in crate `convert_osm`."><meta name="keywords" content="rust, rustlang, rust-lang, dedupe_angles"><title>convert_osm::split_ways::dedupe_angles - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc 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">&#9776;</div><a href='../../convert_osm/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">convert_osm</a>::<wbr><a href="index.html">split_ways</a></p><script>window.sidebarCurrent = {name: "dedupe_angles", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/split_ways.rs.html#205-222" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">convert_osm</a>::<wbr><a href="index.html">split_ways</a>::<wbr><a class="fn" href="">dedupe_angles</a></span></h1><pre class="rust fn">fn dedupe_angles(pts: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt;) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "convert_osm";</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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/split_ways.rs.html#240-257" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">convert_osm</a>::<wbr><a href="index.html">split_ways</a>::<wbr><a class="fn" href="">dedupe_angles</a></span></h1><pre class="rust fn">fn dedupe_angles(pts: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt;) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "convert_osm";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>

View File

@ -0,0 +1,8 @@
<!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 `should_collapse_roundabout` fn in crate `convert_osm`."><meta name="keywords" content="rust, rustlang, rust-lang, should_collapse_roundabout"><title>convert_osm::split_ways::should_collapse_roundabout - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc 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">&#9776;</div><a href='../../convert_osm/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">convert_osm</a>::<wbr><a href="index.html">split_ways</a></p><script>window.sidebarCurrent = {name: "should_collapse_roundabout", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/split_ways.rs.html#264-268" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">convert_osm</a>::<wbr><a href="index.html">split_ways</a>::<wbr><a class="fn" href="">should_collapse_roundabout</a></span></h1><pre class="rust fn">fn should_collapse_roundabout(r: &amp;<a class="struct" href="../../map_model/raw/struct.RawRoad.html" title="struct map_model::raw::RawRoad">RawRoad</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></pre><div class="docblock"><p>Many &quot;roundabouts&quot; like https://www.openstreetmap.org/way/427144965 are so tiny that they wind
up with ridiculous geometry and cause constant gridlock.</p>
<p>Note https://www.openstreetmap.org/way/394991047 is an example of something that shouldn't get
modified. The only distinction, currently, is length -- but I'd love a better definition.</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "convert_osm";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>

View File

@ -1,6 +1,6 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `split_up_roads` fn in crate `convert_osm`."><meta name="keywords" content="rust, rustlang, rust-lang, split_up_roads"><title>convert_osm::split_ways::split_up_roads - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc 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">&#9776;</div><a href='../../convert_osm/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">convert_osm</a>::<wbr><a href="index.html">split_ways</a></p><script>window.sidebarCurrent = {name: "split_up_roads", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/split_ways.rs.html#12-202" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">convert_osm</a>::<wbr><a href="index.html">split_ways</a>::<wbr><a class="fn" href="">split_up_roads</a></span></h1><pre class="rust fn">pub fn split_up_roads(<br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;mut <a class="struct" href="../../map_model/raw/struct.RawMap.html" title="struct map_model::raw::RawMap">RawMap</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;input: <a class="struct" href="../../convert_osm/extract/struct.OsmExtract.html" title="struct convert_osm::extract::OsmExtract">OsmExtract</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;timer: &amp;mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a>&lt;'_&gt;<br>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>, <a class="struct" href="../../map_model/objects/building/struct.Amenity.html" title="struct map_model::objects::building::Amenity">Amenity</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;<a class="struct" href="../../geom/pt/struct.HashablePt2D.html" title="struct geom::pt::HashablePt2D">HashablePt2D</a>, <a class="struct" href="../../map_model/raw/struct.OriginalRoad.html" title="struct map_model::raw::OriginalRoad">OriginalRoad</a>&gt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></pre><div class="docblock"><p>Returns amenities and a mapping of all points to split road. (Some internal points on roads get
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/split_ways.rs.html#12-237" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">convert_osm</a>::<wbr><a href="index.html">split_ways</a>::<wbr><a class="fn" href="">split_up_roads</a></span></h1><pre class="rust fn">pub fn split_up_roads(<br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;mut <a class="struct" href="../../map_model/raw/struct.RawMap.html" title="struct map_model::raw::RawMap">RawMap</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;input: <a class="struct" href="../../convert_osm/extract/struct.OsmExtract.html" title="struct convert_osm::extract::OsmExtract">OsmExtract</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;timer: &amp;mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a>&lt;'_&gt;<br>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>, <a class="struct" href="../../map_model/objects/building/struct.Amenity.html" title="struct map_model::objects::building::Amenity">Amenity</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;<a class="struct" href="../../geom/pt/struct.HashablePt2D.html" title="struct geom::pt::HashablePt2D">HashablePt2D</a>, <a class="struct" href="../../map_model/raw/struct.OriginalRoad.html" title="struct map_model::raw::OriginalRoad">OriginalRoad</a>&gt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></pre><div class="docblock"><p>Returns amenities and a mapping of all points to split road. (Some internal points on roads get
removed in this call, so this mapping isn't redundant.)</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "convert_osm";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>

View File

@ -1,7 +1,9 @@
<!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 `split_ways` mod in crate `convert_osm`."><meta name="keywords" content="rust, rustlang, rust-lang, split_ways"><title>convert_osm::split_ways - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../convert_osm/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module split_ways</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">convert_osm</a></p><script>window.sidebarCurrent = {name: "split_ways", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/split_ways.rs.html#1-222" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">convert_osm</a>::<wbr><a class="mod" href="">split_ways</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.dedupe_angles.html" title="convert_osm::split_ways::dedupe_angles fn">dedupe_angles</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.split_up_roads.html" title="convert_osm::split_ways::split_up_roads fn">split_up_roads</a></td><td class="docblock-short"><p>Returns amenities and a mapping of all points to split road. (Some internal points on roads get
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/split_ways.rs.html#1-268" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">convert_osm</a>::<wbr><a class="mod" href="">split_ways</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.dedupe_angles.html" title="convert_osm::split_ways::dedupe_angles fn">dedupe_angles</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.should_collapse_roundabout.html" title="convert_osm::split_ways::should_collapse_roundabout fn">should_collapse_roundabout</a></td><td class="docblock-short"><p>Many &quot;roundabouts&quot; like https://www.openstreetmap.org/way/427144965 are so tiny that they wind
up with ridiculous geometry and cause constant gridlock.</p>
</td></tr><tr class="module-item"><td><a class="fn" href="fn.split_up_roads.html" title="convert_osm::split_ways::split_up_roads fn">split_up_roads</a></td><td class="docblock-short"><p>Returns amenities and a mapping of all points to split road. (Some internal points on roads get
removed in this call, so this mapping isn't redundant.)</p>
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "convert_osm";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>

View File

@ -1 +1 @@
initSidebarItems({"fn":[["dedupe_angles",""],["split_up_roads","Returns amenities and a mapping of all points to split road. (Some internal points on roads get removed in this call, so this mapping isn't redundant.)"]]});
initSidebarItems({"fn":[["dedupe_angles",""],["should_collapse_roundabout","Many \"roundabouts\" like https://www.openstreetmap.org/way/427144965 are so tiny that they wind up with ridiculous geometry and cause constant gridlock."],["split_up_roads","Returns amenities and a mapping of all points to split road. (Some internal points on roads get removed in this call, so this mapping isn't redundant.)"]]});

View File

@ -1,5 +1,5 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `BUILT_TIME_UTC` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>game::pregame::built_info::BUILT_TIME_UTC - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a></p><script>window.sidebarCurrent = {name: "BUILT_TIME_UTC", ty: "constant", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><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">&#x2212;</span>]</a></span><a class="srclink" href="../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-b5501e76eef510ad/out/built.rs.html#53" title="goto source code">[src]</a></span><span class="in-band">Constant <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="">BUILT_TIME_UTC</a></span></h1><pre class="rust const">pub const BUILT_TIME_UTC: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = &quot;Tue, 26 Jan 2021 23:56:57 +0000&quot;;</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">&#x2212;</span>]</a></span><a class="srclink" href="../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-b5501e76eef510ad/out/built.rs.html#53" title="goto source code">[src]</a></span><span class="in-band">Constant <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="">BUILT_TIME_UTC</a></span></h1><pre class="rust const">pub const BUILT_TIME_UTC: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = &quot;Wed, 27 Jan 2021 02:18:11 +0000&quot;;</pre><div class="docblock"><p>The built-time in RFC2822, UTC</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

File diff suppressed because one or more lines are too long

View File

@ -223,12 +223,58 @@
<span id="220">220</span>
<span id="221">221</span>
<span id="222">222</span>
<span id="223">223</span>
<span id="224">224</span>
<span id="225">225</span>
<span id="226">226</span>
<span id="227">227</span>
<span id="228">228</span>
<span id="229">229</span>
<span id="230">230</span>
<span id="231">231</span>
<span id="232">232</span>
<span id="233">233</span>
<span id="234">234</span>
<span id="235">235</span>
<span id="236">236</span>
<span id="237">237</span>
<span id="238">238</span>
<span id="239">239</span>
<span id="240">240</span>
<span id="241">241</span>
<span id="242">242</span>
<span id="243">243</span>
<span id="244">244</span>
<span id="245">245</span>
<span id="246">246</span>
<span id="247">247</span>
<span id="248">248</span>
<span id="249">249</span>
<span id="250">250</span>
<span id="251">251</span>
<span id="252">252</span>
<span id="253">253</span>
<span id="254">254</span>
<span id="255">255</span>
<span id="256">256</span>
<span id="257">257</span>
<span id="258">258</span>
<span id="259">259</span>
<span id="260">260</span>
<span id="261">261</span>
<span id="262">262</span>
<span id="263">263</span>
<span id="264">264</span>
<span id="265">265</span>
<span id="266">266</span>
<span id="267">267</span>
<span id="268">268</span>
</pre><div class="example-wrap"><pre class="rust ">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::<span class="ident">HashMap</span>;
<span class="kw">use</span> <span class="ident">abstutil</span>::{<span class="ident">Counter</span>, <span class="ident">Timer</span>};
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Distance</span>, <span class="ident">HashablePt2D</span>, <span class="ident">Pt2D</span>};
<span class="kw">use</span> <span class="ident">map_model</span>::<span class="ident">raw</span>::{<span class="ident">OriginalRoad</span>, <span class="ident">RawIntersection</span>, <span class="ident">RawMap</span>};
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Distance</span>, <span class="ident">HashablePt2D</span>, <span class="ident">PolyLine</span>, <span class="ident">Pt2D</span>};
<span class="kw">use</span> <span class="ident">map_model</span>::<span class="ident">raw</span>::{<span class="ident">OriginalRoad</span>, <span class="ident">RawIntersection</span>, <span class="ident">RawMap</span>, <span class="ident">RawRoad</span>};
<span class="kw">use</span> <span class="ident">map_model</span>::{<span class="ident">osm</span>, <span class="ident">Amenity</span>, <span class="ident">Direction</span>, <span class="ident">IntersectionType</span>};
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">extract</span>::<span class="ident">OsmExtract</span>;
@ -242,7 +288,29 @@
) <span class="op">-</span><span class="op">&gt;</span> (<span class="ident">Vec</span><span class="op">&lt;</span>(<span class="ident">Pt2D</span>, <span class="ident">Amenity</span>)<span class="op">&gt;</span>, <span class="ident">HashMap</span><span class="op">&lt;</span><span class="ident">HashablePt2D</span>, <span class="ident">OriginalRoad</span><span class="op">&gt;</span>) {
<span class="ident">timer</span>.<span class="ident">start</span>(<span class="string">&quot;splitting up roads&quot;</span>);
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">roundabout_centers</span>: <span class="ident">HashMap</span><span class="op">&lt;</span><span class="ident">osm</span>::<span class="ident">NodeID</span>, <span class="ident">Pt2D</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">HashMap</span>::<span class="ident">new</span>();
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">pt_to_intersection</span>: <span class="ident">HashMap</span><span class="op">&lt;</span><span class="ident">HashablePt2D</span>, <span class="ident">osm</span>::<span class="ident">NodeID</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">HashMap</span>::<span class="ident">new</span>();
{
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">roads</span> <span class="op">=</span> <span class="ident">std</span>::<span class="ident">mem</span>::<span class="ident">replace</span>(<span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">input</span>.<span class="ident">roads</span>, <span class="ident">Vec</span>::<span class="ident">new</span>());
<span class="ident">roads</span>.<span class="ident">retain</span>(<span class="op">|</span>(<span class="ident">id</span>, <span class="ident">r</span>)<span class="op">|</span> {
<span class="kw">if</span> <span class="ident">should_collapse_roundabout</span>(<span class="ident">r</span>) {
<span class="macro">info</span><span class="macro">!</span>(<span class="string">&quot;Collapsing tiny roundabout {}&quot;</span>, <span class="ident">id</span>);
<span class="comment">// Arbitrarily use the first node&#39;s ID</span>
<span class="kw">let</span> <span class="ident">id</span> <span class="op">=</span> <span class="ident">input</span>.<span class="ident">osm_node_ids</span>[<span class="kw-2">&amp;</span><span class="ident">r</span>.<span class="ident">center_points</span>[<span class="number">0</span>].<span class="ident">to_hashable</span>()];
<span class="ident">roundabout_centers</span>.<span class="ident">insert</span>(<span class="ident">id</span>, <span class="ident">Pt2D</span>::<span class="ident">center</span>(<span class="kw-2">&amp;</span><span class="ident">r</span>.<span class="ident">center_points</span>));
<span class="kw">for</span> <span class="ident">pt</span> <span class="kw">in</span> <span class="kw-2">&amp;</span><span class="ident">r</span>.<span class="ident">center_points</span> {
<span class="ident">pt_to_intersection</span>.<span class="ident">insert</span>(<span class="ident">pt</span>.<span class="ident">to_hashable</span>(), <span class="ident">id</span>);
}
<span class="bool-val">false</span>
} <span class="kw">else</span> {
<span class="bool-val">true</span>
}
});
<span class="ident">input</span>.<span class="ident">roads</span> <span class="op">=</span> <span class="ident">roads</span>;
}
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">counts_per_pt</span> <span class="op">=</span> <span class="ident">Counter</span>::<span class="ident">new</span>();
<span class="kw">for</span> (<span class="kw">_</span>, <span class="ident">r</span>) <span class="kw">in</span> <span class="kw-2">&amp;</span><span class="ident">input</span>.<span class="ident">roads</span> {
<span class="kw">for</span> (<span class="ident">idx</span>, <span class="ident">raw_pt</span>) <span class="kw">in</span> <span class="ident">r</span>.<span class="ident">center_points</span>.<span class="ident">iter</span>().<span class="ident">enumerate</span>() {
@ -275,6 +343,19 @@
);
}
<span class="comment">// Set roundabouts to their center</span>
<span class="kw">for</span> (<span class="ident">id</span>, <span class="ident">point</span>) <span class="kw">in</span> <span class="ident">roundabout_centers</span> {
<span class="ident">map</span>.<span class="ident">intersections</span>.<span class="ident">insert</span>(
<span class="ident">id</span>,
<span class="ident">RawIntersection</span> {
<span class="ident">point</span>,
<span class="ident">intersection_type</span>: <span class="ident">IntersectionType</span>::<span class="ident">StopSign</span>,
<span class="comment">// Filled out later</span>
<span class="ident">elevation</span>: <span class="ident">Distance</span>::<span class="ident">ZERO</span>,
},
);
}
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">pt_to_road</span>: <span class="ident">HashMap</span><span class="op">&lt;</span><span class="ident">HashablePt2D</span>, <span class="ident">OriginalRoad</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">HashMap</span>::<span class="ident">new</span>();
<span class="comment">// Now actually split up the roads based on the intersections</span>
@ -446,5 +527,16 @@
}
<span class="ident">result</span>
}
<span class="doccomment">/// Many &quot;roundabouts&quot; like https://www.openstreetmap.org/way/427144965 are so tiny that they wind</span>
<span class="doccomment">/// up with ridiculous geometry and cause constant gridlock.</span>
<span class="doccomment">///</span>
<span class="doccomment">/// Note https://www.openstreetmap.org/way/394991047 is an example of something that shouldn&#39;t get</span>
<span class="doccomment">/// modified. The only distinction, currently, is length -- but I&#39;d love a better definition.</span>
<span class="kw">fn</span> <span class="ident">should_collapse_roundabout</span>(<span class="ident">r</span>: <span class="kw-2">&amp;</span><span class="ident">RawRoad</span>) <span class="op">-</span><span class="op">&gt;</span> <span class="ident">bool</span> {
<span class="ident">r</span>.<span class="ident">osm_tags</span>.<span class="ident">is</span>(<span class="string">&quot;junction&quot;</span>, <span class="string">&quot;roundabout&quot;</span>)
<span class="op">&amp;&amp;</span> <span class="ident">r</span>.<span class="ident">center_points</span>[<span class="number">0</span>] <span class="op">=</span><span class="op">=</span> <span class="kw-2">*</span><span class="ident">r</span>.<span class="ident">center_points</span>.<span class="ident">last</span>().<span class="ident">unwrap</span>()
<span class="op">&amp;&amp;</span> <span class="ident">PolyLine</span>::<span class="ident">unchecked_new</span>(<span class="ident">r</span>.<span class="ident">center_points</span>.<span class="ident">clone</span>()).<span class="ident">length</span>() <span class="op">&lt;</span> <span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">30.0</span>)
}
</pre></div>
</section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "convert_osm";</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>

View File

@ -122,7 +122,7 @@
<span class="doccomment">/// The output of `rustdoc -V`</span>
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;rustdoc 1.49.0 (e1884a8e3 2020-12-29)&quot;</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">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;Tue, 26 Jan 2021 23:56:57 +0000&quot;</span>;
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;Wed, 27 Jan 2021 02:18:11 +0000&quot;</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">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;x86_64&quot;</span>;
<span class="doccomment">/// The endianness, given by `cfg!(target_endian)`.</span>