<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="This crate describes a synthetic population that exist in a map. Currently each person’s travel behavior is modelled, but in the future, demographic and health attributes may be added. There’s a variety of ways to create these populations, scattered in other crates."><metaname="keywords"content="rust, rustlang, rust-lang, synthpop"><title>synthpop - Rust</title><linkrel="stylesheet"type="text/css"href="../normalize.css"><linkrel="stylesheet"type="text/css"href="../rustdoc.css"id="mainThemeStyle"><linkrel="stylesheet"type="text/css"href="../light.css"id="themeStyle"><linkrel="stylesheet"type="text/css"href="../dark.css"disabled><linkrel="stylesheet"type="text/css"href="../ayu.css"disabled><scriptid="default-settings"></script><scriptsrc="../storage.js"></script><scriptsrc="../crates.js"></script><scriptdefersrc="../main.js"></script>
<noscript><linkrel="stylesheet"href="../noscript.css"></noscript><linkrel="alternate icon"type="image/png"href="../favicon-16x16.png"><linkrel="alternate icon"type="image/png"href="../favicon-32x32.png"><linkrel="icon"type="image/svg+xml"href="../favicon.svg"><styletype="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><bodyclass="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu"role="button">☰</div><ahref='../synthpop/index.html'><divclass='logo-container rust-logo'><imgsrc='../rust-logo.png'alt='logo'></div></a><h2class="location">Crate synthpop</h2><divclass="block version"><divclass="narrow-helper"></div><p>Version 0.1.0</p></div><divclass="sidebar-elems"><aid="all-types"href="all.html"><p>See all synthpop's items</p></a><divclass="block items"><ul><li><ahref="#modules">Modules</a></li><li><ahref="#structs">Structs</a></li><li><ahref="#enums">Enums</a></li></ul></div><divid="sidebar-vars"data-name="synthpop"data-ty="mod"data-relpath=""></div><scriptdefersrc="sidebar-items.js"></script></div></nav><divclass="theme-picker"><buttonid="theme-picker"aria-label="Pick another theme!"aria-haspopup="menu"title="themes"><imgwidth="18"height="18"alt="Pick another theme!"src="../brush.svg"></button><divid="theme-choices"role="menu"></div></div><navclass="sub"><formclass="search-form"><divclass="search-container"><div><selectid="crate-search"><optionvalue="All crates">All crates</option></select><inputclass="search-input"name="search"autocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"></div><buttontype="button"id="help-button"title="help">?</button><aid="settings-menu"href="../settings.html"title="settings"><imgwidth="18"height="18"alt="Change settings"src="../wheel.svg"></a></div></form></nav><sectionid="main"class="content"><h1class="fqn"><spanclass="in-band">Crate <aclass="mod"href="#">synthpop</a><buttonid="copy-path"onclick="copy_path(this)"title="Copy item path to clipboard"><imgsrc="../clipboard.svg"width="19"height="18"alt="Copy item path"></button></span><spanclass="out-of-band"><spanid="render-detail"><aid="toggle-all-docs"href="javascript:void(0)"title="collapse all docs">[<spanclass="inner">−</span>]</a></span><aclass="srclink"href="../src/synthpop/lib.rs.html#1-116"title="goto source code">[src]</a></span></h1><detailsclass="rustdoc-toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>This crate describes a synthetic population that exist in a map. Currently each person’s travel
<divclass="item-table"><divclass="item-row"><divclass="item-left module-item"><aclass="mod"href="counts/index.html"title="synthpop::counts mod">counts</a></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left module-item"><aclass="mod"href="endpoint/index.html"title="synthpop::endpoint mod">endpoint</a></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left module-item"><aclass="mod"href="external/index.html"title="synthpop::external mod">external</a></div><divclass="item-right docblock-short"><p>Some users of the API (https://a-b-street.github.io/docs/tech/dev/api.html) have their own
<divclass="item-table"><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.ExternalPerson.html"title="synthpop::ExternalPerson struct">ExternalPerson</a></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.ExternalTrip.html"title="synthpop::ExternalTrip struct">ExternalTrip</a></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.IndividTrip.html"title="synthpop::IndividTrip struct">IndividTrip</a></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.MapBorders.html"title="synthpop::MapBorders struct">MapBorders</a></div><divclass="item-right docblock-short"><p>Lists all border intersections of the map, broken down by mode and whether they support
incoming or outgoing traffic.</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.OrigPersonID.html"title="synthpop::OrigPersonID struct">OrigPersonID</a></div><divclass="item-right docblock-short"><p>This is an ID used by Seattle soundcast. Originally it was preserved for debugging, but that
hasn’t happened in a long time. Also the format is tied to Soundcast. Consider deleting /
changing.</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.PersonSpec.html"title="synthpop::PersonSpec struct">PersonSpec</a></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.Scenario.html"title="synthpop::Scenario struct">Scenario</a></div><divclass="item-right docblock-short"><p>A Scenario describes all the input to a simulation. Usually a scenario covers one day.</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.TrafficCounts.html"title="synthpop::TrafficCounts struct">TrafficCounts</a></div><divclass="item-right docblock-short"><p>This represents the number of vehicles (or trips, or something else) crossing roads and
intersections over some span of time. The data could represent real observations or something
<divclass="item-table"><divclass="item-row"><divclass="item-left module-item"><aclass="enum"href="enum.ExternalTripEndpoint.html"title="synthpop::ExternalTripEndpoint enum">ExternalTripEndpoint</a></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left module-item"><aclass="enum"href="enum.ScenarioModifier.html"title="synthpop::ScenarioModifier enum">ScenarioModifier</a></div><divclass="item-right docblock-short"><p>Transforms an existing Scenario before instantiating it.</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="enum"href="enum.TripEndpoint.html"title="synthpop::TripEndpoint enum">TripEndpoint</a></div><divclass="item-right docblock-short"><p>Specifies where a trip begins or ends.</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="enum"href="enum.TripMode.html"title="synthpop::TripMode enum">TripMode</a></div><divclass="item-right docblock-short"><p>How does a trip primarily happen?</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="enum"href="enum.TripPurpose.html"title="synthpop::TripPurpose enum">TripPurpose</a></div><divclass="item-right docblock-short"><p>Lifted from Seattle’s Soundcast model, but seems general enough to use anyhere.</p>