mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-27 00:12:55 +03:00
6 lines
15 KiB
HTML
6 lines
15 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `sim` crate."><meta name="keywords" content="rust, rustlang, rust-lang, sim"><title>sim - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../dark.css"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../sim/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Crate sim</p><div class="sidebar-elems"><a id='all-types' href='all.html'><p>See all sim'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></ul></div><p class='location'></p><script>window.sidebarCurrent = {name: 'sim', 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><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/sim/lib.rs.html#1-631' title='goto source code'>[src]</a></span><span class='in-band'>Crate <a class="mod" href=''>sim</a></span></h1><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
|
||
<table><tr class='module-item'><td><a class="mod" href="analytics/index.html" title='sim::analytics mod'>analytics</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="cap/index.html" title='sim::cap mod'>cap</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="events/index.html" title='sim::events mod'>events</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="make/index.html" title='sim::make mod'>make</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="mechanics/index.html" title='sim::mechanics mod'>mechanics</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="pandemic/index.html" title='sim::pandemic mod'>pandemic</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="render/index.html" title='sim::render mod'>render</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="router/index.html" title='sim::router mod'>router</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="scheduler/index.html" title='sim::scheduler mod'>scheduler</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="sim/index.html" title='sim::sim mod'>sim</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="transit/index.html" title='sim::transit mod'>transit</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="trips/index.html" title='sim::trips mod'>trips</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.AgentProperties.html" title='sim::AgentProperties struct'>AgentProperties</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Analytics.html" title='sim::Analytics struct'>Analytics</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.BorderSpawnOverTime.html" title='sim::BorderSpawnOverTime struct'>BorderSpawnOverTime</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.CarID.html" title='sim::CarID struct'>CarID</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.CreateCar.html" title='sim::CreateCar struct'>CreateCar</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.CreatePedestrian.html" title='sim::CreatePedestrian struct'>CreatePedestrian</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.DistanceInterval.html" title='sim::DistanceInterval struct'>DistanceInterval</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.DontDrawAgents.html" title='sim::DontDrawAgents struct'>DontDrawAgents</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.DrawCarInput.html" title='sim::DrawCarInput struct'>DrawCarInput</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.DrawPedCrowdInput.html" title='sim::DrawPedCrowdInput struct'>DrawPedCrowdInput</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.DrawPedestrianInput.html" title='sim::DrawPedestrianInput struct'>DrawPedestrianInput</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.IndividTrip.html" title='sim::IndividTrip struct'>IndividTrip</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.OffMapLocation.html" title='sim::OffMapLocation struct'>OffMapLocation</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.OrigPersonID.html" title='sim::OrigPersonID struct'>OrigPersonID</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.ParkedCar.html" title='sim::ParkedCar struct'>ParkedCar</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.PedestrianID.html" title='sim::PedestrianID struct'>PedestrianID</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Person.html" title='sim::Person struct'>Person</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.PersonID.html" title='sim::PersonID struct'>PersonID</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.PersonSpec.html" title='sim::PersonSpec struct'>PersonSpec</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Scenario.html" title='sim::Scenario struct'>Scenario</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.ScenarioGenerator.html" title='sim::ScenarioGenerator struct'>ScenarioGenerator</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.SidewalkSpot.html" title='sim::SidewalkSpot struct'>SidewalkSpot</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Sim.html" title='sim::Sim struct'>Sim</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.SimFlags.html" title='sim::SimFlags struct'>SimFlags</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.SimOptions.html" title='sim::SimOptions struct'>SimOptions</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.SpawnOverTime.html" title='sim::SpawnOverTime struct'>SpawnOverTime</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.TimeInterval.html" title='sim::TimeInterval struct'>TimeInterval</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.TripID.html" title='sim::TripID struct'>TripID</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.TripInfo.html" title='sim::TripInfo struct'>TripInfo</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.TripPhase.html" title='sim::TripPhase struct'>TripPhase</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.TripSpawner.html" title='sim::TripSpawner struct'>TripSpawner</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.UnzoomedAgent.html" title='sim::UnzoomedAgent struct'>UnzoomedAgent</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Vehicle.html" title='sim::Vehicle struct'>Vehicle</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.VehicleSpec.html" title='sim::VehicleSpec struct'>VehicleSpec</a></td><td class='docblock-short'></td></tr></table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2>
|
||
<table><tr class='module-item'><td><a class="enum" href="enum.AgentID.html" title='sim::AgentID enum'>AgentID</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.AgentType.html" title='sim::AgentType enum'>AgentType</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.AlertHandler.html" title='sim::AlertHandler enum'>AlertHandler</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.AlertLocation.html" title='sim::AlertLocation enum'>AlertLocation</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.CarStatus.html" title='sim::CarStatus enum'>CarStatus</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.DrivingGoal.html" title='sim::DrivingGoal enum'>DrivingGoal</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.OriginDestination.html" title='sim::OriginDestination enum'>OriginDestination</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.ParkingSpot.html" title='sim::ParkingSpot enum'>ParkingSpot</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.PedCrowdLocation.html" title='sim::PedCrowdLocation enum'>PedCrowdLocation</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.PersonState.html" title='sim::PersonState enum'>PersonState</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.ScenarioModifier.html" title='sim::ScenarioModifier enum'>ScenarioModifier</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.SidewalkPOI.html" title='sim::SidewalkPOI enum'>SidewalkPOI</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.SpawnTrip.html" title='sim::SpawnTrip enum'>SpawnTrip</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.TripEndpoint.html" title='sim::TripEndpoint enum'>TripEndpoint</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.TripMode.html" title='sim::TripMode enum'>TripMode</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.TripPhaseType.html" title='sim::TripPhaseType enum'>TripPhaseType</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.TripResult.html" title='sim::TripResult enum'>TripResult</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.TripSpec.html" title='sim::TripSpec enum'>TripSpec</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.VehicleType.html" title='sim::VehicleType enum'>VehicleType</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.BIKE_LENGTH.html" title='sim::BIKE_LENGTH constant'>BIKE_LENGTH</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.BUS_LENGTH.html" title='sim::BUS_LENGTH constant'>BUS_LENGTH</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.FOLLOWING_DISTANCE.html" title='sim::FOLLOWING_DISTANCE constant'>FOLLOWING_DISTANCE</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.LIGHT_RAIL_LENGTH.html" title='sim::LIGHT_RAIL_LENGTH constant'>LIGHT_RAIL_LENGTH</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.MAX_CAR_LENGTH.html" title='sim::MAX_CAR_LENGTH constant'>MAX_CAR_LENGTH</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.MIN_CAR_LENGTH.html" title='sim::MIN_CAR_LENGTH constant'>MIN_CAR_LENGTH</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.SPAWN_DIST.html" title='sim::SPAWN_DIST constant'>SPAWN_DIST</a></td><td class='docblock-short'></td></tr></table><h2 id='traits' class='section-header'><a href="#traits">Traits</a></h2>
|
||
<table><tr class='module-item'><td><a class="trait" href="trait.GetDrawAgents.html" title='sim::GetDrawAgents trait'>GetDrawAgents</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="trait" href="trait.SimCallback.html" title='sim::SimCallback trait'>SimCallback</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 = "sim";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html> |