diff --git a/rustdoc/abstio/abst_paths/struct.MapName.html b/rustdoc/abstio/abst_paths/struct.MapName.html index bd7c4171da..353954c4e4 100644 --- a/rustdoc/abstio/abst_paths/struct.MapName.html +++ b/rustdoc/abstio/abst_paths/struct.MapName.html @@ -34,11 +34,11 @@ by ==.
source§

impl PartialOrd for MapName

source§

fn partial_cmp(&self, other: &MapName) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for MapName

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl CloneableAny for MapName

source§

impl Eq for MapName

source§

impl StructuralEq for MapName

source§

impl StructuralPartialEq for MapName

Auto Trait Implementations§

§

impl RefUnwindSafe for MapName

§

impl Send for MapName

§

impl Sync for MapName

§

impl Unpin for MapName

§

impl UnwindSafe for MapName

Blanket Implementations§

source§

impl<T> Any for Twhere + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl CloneableAny for MapName

source§

impl Eq for MapName

source§

impl StructuralEq for MapName

source§

impl StructuralPartialEq for MapName

Auto Trait Implementations§

§

impl RefUnwindSafe for MapName

§

impl Send for MapName

§

impl Sync for MapName

§

impl Unpin for MapName

§

impl UnwindSafe for MapName

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneableImpl for Twhere - T: 'static + CloneableAny + Clone,

§

fn clone_box(&self) -> Box<dyn CloneableAny>

§

fn as_any(&self) -> &(dyn Any + 'static)

source§

impl<Q, K> Equivalent<K> for Qwhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneableImpl for Twhere + T: 'static + CloneableAny + Clone,

source§

fn clone_box(&self) -> Box<dyn CloneableAny>

source§

fn as_any(&self) -> &(dyn Any + 'static)

source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an diff --git a/rustdoc/abstio/fn.maybe_read_binary.html b/rustdoc/abstio/fn.maybe_read_binary.html index 5aabe14012..803c873bb5 100644 --- a/rustdoc/abstio/fn.maybe_read_binary.html +++ b/rustdoc/abstio/fn.maybe_read_binary.html @@ -1,4 +1,4 @@ maybe_read_binary in abstio - Rust

Function abstio::maybe_read_binary

source ·
pub fn maybe_read_binary<T: DeserializeOwned>(
     path: String,
-    timer: &mut Timer<'_>
+    timer: &mut Timer<'_>
 ) -> Result<T>
\ No newline at end of file diff --git a/rustdoc/abstio/fn.maybe_read_json.html b/rustdoc/abstio/fn.maybe_read_json.html index 513ab3e07d..dbf7ff7704 100644 --- a/rustdoc/abstio/fn.maybe_read_json.html +++ b/rustdoc/abstio/fn.maybe_read_json.html @@ -1,4 +1,4 @@ maybe_read_json in abstio - Rust

Function abstio::maybe_read_json

source ·
pub fn maybe_read_json<T: DeserializeOwned>(
     path: String,
-    timer: &mut Timer<'_>
+    timer: &mut Timer<'_>
 ) -> Result<T>
\ No newline at end of file diff --git a/rustdoc/abstio/fn.must_read_object.html b/rustdoc/abstio/fn.must_read_object.html index ee3bf80f59..f909234d16 100644 --- a/rustdoc/abstio/fn.must_read_object.html +++ b/rustdoc/abstio/fn.must_read_object.html @@ -1,5 +1,5 @@ must_read_object in abstio - Rust

Function abstio::must_read_object

source ·
pub fn must_read_object<T: DeserializeOwned>(
     path: String,
-    timer: &mut Timer<'_>
+    timer: &mut Timer<'_>
 ) -> T
Expand description

May be a JSON or binary file. Panics on failure.

\ No newline at end of file diff --git a/rustdoc/abstio/fn.read_binary.html b/rustdoc/abstio/fn.read_binary.html index fbc61ca991..205e97deb5 100644 --- a/rustdoc/abstio/fn.read_binary.html +++ b/rustdoc/abstio/fn.read_binary.html @@ -1,4 +1,4 @@ read_binary in abstio - Rust

Function abstio::read_binary

source ·
pub fn read_binary<T: DeserializeOwned>(
     path: String,
-    timer: &mut Timer<'_>
+    timer: &mut Timer<'_>
 ) -> T
\ No newline at end of file diff --git a/rustdoc/abstio/fn.read_json.html b/rustdoc/abstio/fn.read_json.html index b0b663755f..05dee97b39 100644 --- a/rustdoc/abstio/fn.read_json.html +++ b/rustdoc/abstio/fn.read_json.html @@ -1 +1 @@ -read_json in abstio - Rust

Function abstio::read_json

source ·
pub fn read_json<T: DeserializeOwned>(path: String, timer: &mut Timer<'_>) -> T
\ No newline at end of file +read_json in abstio - Rust

Function abstio::read_json

source ·
pub fn read_json<T: DeserializeOwned>(path: String, timer: &mut Timer<'_>) -> T
\ No newline at end of file diff --git a/rustdoc/abstio/fn.read_object.html b/rustdoc/abstio/fn.read_object.html index 0e1df112d9..bcc6edd213 100644 --- a/rustdoc/abstio/fn.read_object.html +++ b/rustdoc/abstio/fn.read_object.html @@ -1,5 +1,5 @@ read_object in abstio - Rust

Function abstio::read_object

source ·
pub fn read_object<T: DeserializeOwned>(
     path: String,
-    timer: &mut Timer<'_>
+    timer: &mut Timer<'_>
 ) -> Result<T>
Expand description

May be a JSON or binary file

\ No newline at end of file diff --git a/rustdoc/abstio/io/fn.maybe_read_json.html b/rustdoc/abstio/io/fn.maybe_read_json.html index a70dd303c0..049208a630 100644 --- a/rustdoc/abstio/io/fn.maybe_read_json.html +++ b/rustdoc/abstio/io/fn.maybe_read_json.html @@ -1,4 +1,4 @@ maybe_read_json in abstio::io - Rust

Function abstio::io::maybe_read_json

source ·
pub fn maybe_read_json<T: DeserializeOwned>(
     path: String,
-    timer: &mut Timer<'_>
+    timer: &mut Timer<'_>
 ) -> Result<T>
\ No newline at end of file diff --git a/rustdoc/abstio/io/fn.must_read_object.html b/rustdoc/abstio/io/fn.must_read_object.html index 70ad4675e3..a415b03938 100644 --- a/rustdoc/abstio/io/fn.must_read_object.html +++ b/rustdoc/abstio/io/fn.must_read_object.html @@ -1,5 +1,5 @@ must_read_object in abstio::io - Rust

Function abstio::io::must_read_object

source ·
pub fn must_read_object<T: DeserializeOwned>(
     path: String,
-    timer: &mut Timer<'_>
+    timer: &mut Timer<'_>
 ) -> T
Expand description

May be a JSON or binary file. Panics on failure.

\ No newline at end of file diff --git a/rustdoc/abstio/io/fn.read_binary.html b/rustdoc/abstio/io/fn.read_binary.html index cbe514431b..45292dacdc 100644 --- a/rustdoc/abstio/io/fn.read_binary.html +++ b/rustdoc/abstio/io/fn.read_binary.html @@ -1,4 +1,4 @@ read_binary in abstio::io - Rust

Function abstio::io::read_binary

source ·
pub fn read_binary<T: DeserializeOwned>(
     path: String,
-    timer: &mut Timer<'_>
+    timer: &mut Timer<'_>
 ) -> T
\ No newline at end of file diff --git a/rustdoc/abstio/io/fn.read_json.html b/rustdoc/abstio/io/fn.read_json.html index 8bd37ae1a4..df0ab668f0 100644 --- a/rustdoc/abstio/io/fn.read_json.html +++ b/rustdoc/abstio/io/fn.read_json.html @@ -1 +1 @@ -read_json in abstio::io - Rust

Function abstio::io::read_json

source ·
pub fn read_json<T: DeserializeOwned>(path: String, timer: &mut Timer<'_>) -> T
\ No newline at end of file +read_json in abstio::io - Rust

Function abstio::io::read_json

source ·
pub fn read_json<T: DeserializeOwned>(path: String, timer: &mut Timer<'_>) -> T
\ No newline at end of file diff --git a/rustdoc/abstio/io/fn.read_object.html b/rustdoc/abstio/io/fn.read_object.html index ab27614c06..f7065b958c 100644 --- a/rustdoc/abstio/io/fn.read_object.html +++ b/rustdoc/abstio/io/fn.read_object.html @@ -1,5 +1,5 @@ read_object in abstio::io - Rust

Function abstio::io::read_object

source ·
pub fn read_object<T: DeserializeOwned>(
     path: String,
-    timer: &mut Timer<'_>
+    timer: &mut Timer<'_>
 ) -> Result<T>
Expand description

May be a JSON or binary file

\ No newline at end of file diff --git a/rustdoc/abstio/io_native/fn.maybe_read_binary.html b/rustdoc/abstio/io_native/fn.maybe_read_binary.html index 593f211fab..bb3dea0554 100644 --- a/rustdoc/abstio/io_native/fn.maybe_read_binary.html +++ b/rustdoc/abstio/io_native/fn.maybe_read_binary.html @@ -1,4 +1,4 @@ maybe_read_binary in abstio::io_native - Rust
pub fn maybe_read_binary<T: DeserializeOwned>(
     path: String,
-    timer: &mut Timer<'_>
+    timer: &mut Timer<'_>
 ) -> Result<T>
\ No newline at end of file diff --git a/rustdoc/abstio/io_native/struct.FileWithProgress.html b/rustdoc/abstio/io_native/struct.FileWithProgress.html index e3c363ff46..a089022c3e 100644 --- a/rustdoc/abstio/io_native/struct.FileWithProgress.html +++ b/rustdoc/abstio/io_native/struct.FileWithProgress.html @@ -7,7 +7,7 @@ last_printed_at: Instant, }

Fields§

§inner: BufReader<File>§path: String§processed_bytes: usize§total_bytes: usize§started_at: Instant§last_printed_at: Instant

Implementations§

source§

impl FileWithProgress

source

pub fn new( path: &str -) -> Result<(FileWithProgress, Box<dyn Fn(&mut Timer<'_>)>)>

Also hands back a callback that’ll add the final result to the timer. The caller must run +) -> Result<(FileWithProgress, Box<dyn Fn(&mut Timer<'_>)>)>

Also hands back a callback that’ll add the final result to the timer. The caller must run it.

Trait Implementations§

source§

impl Read for FileWithProgress

source§

fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>

Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more
1.36.0 · source§

fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>

Like read, except that it reads into a slice of buffers. Read more
source§

fn is_read_vectored(&self) -> bool

🔬This is a nightly-only experimental API. (can_vector)
Determines if this Reader has an efficient read_vectored diff --git a/rustdoc/abstio/struct.FileWithProgress.html b/rustdoc/abstio/struct.FileWithProgress.html index 4db891379a..716d7f9b33 100644 --- a/rustdoc/abstio/struct.FileWithProgress.html +++ b/rustdoc/abstio/struct.FileWithProgress.html @@ -7,7 +7,7 @@ last_printed_at: Instant, }

Fields§

§inner: BufReader<File>§path: String§processed_bytes: usize§total_bytes: usize§started_at: Instant§last_printed_at: Instant

Implementations§

source§

impl FileWithProgress

source

pub fn new( path: &str -) -> Result<(FileWithProgress, Box<dyn Fn(&mut Timer<'_>)>)>

Also hands back a callback that’ll add the final result to the timer. The caller must run +) -> Result<(FileWithProgress, Box<dyn Fn(&mut Timer<'_>)>)>

Also hands back a callback that’ll add the final result to the timer. The caller must run it.

Trait Implementations§

source§

impl Read for FileWithProgress

source§

fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>

Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more
1.36.0 · source§

fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>

Like read, except that it reads into a slice of buffers. Read more
source§

fn is_read_vectored(&self) -> bool

🔬This is a nightly-only experimental API. (can_vector)
Determines if this Reader has an efficient read_vectored diff --git a/rustdoc/abstio/struct.MapName.html b/rustdoc/abstio/struct.MapName.html index 2482286c55..2993828e02 100644 --- a/rustdoc/abstio/struct.MapName.html +++ b/rustdoc/abstio/struct.MapName.html @@ -34,11 +34,11 @@ by ==.
source§

impl PartialOrd for MapName

source§

fn partial_cmp(&self, other: &MapName) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for MapName

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl CloneableAny for MapName

source§

impl Eq for MapName

source§

impl StructuralEq for MapName

source§

impl StructuralPartialEq for MapName

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl CloneableAny for MapName

source§

impl Eq for MapName

source§

impl StructuralEq for MapName

source§

impl StructuralPartialEq for MapName

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneableImpl for Twhere - T: 'static + CloneableAny + Clone,

§

fn clone_box(&self) -> Box<dyn CloneableAny>

§

fn as_any(&self) -> &(dyn Any + 'static)

source§

impl<Q, K> Equivalent<K> for Qwhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneableImpl for Twhere + T: 'static + CloneableAny + Clone,

source§

fn clone_box(&self) -> Box<dyn CloneableAny>

source§

fn as_any(&self) -> &(dyn Any + 'static)

source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an diff --git a/rustdoc/game/app/fn.add_study_area.html b/rustdoc/game/app/fn.add_study_area.html index 7398114ffe..97c72841d7 100644 --- a/rustdoc/game/app/fn.add_study_area.html +++ b/rustdoc/game/app/fn.add_study_area.html @@ -1,2 +1,2 @@ -add_study_area in game::app - Rust

Function game::app::add_study_area

source ·
fn add_study_area(map: &mut Map, name: &str) -> Result<()>
Expand description

Load an extra GeoJSON file, and add the area to the map dynamically.

+add_study_area in game::app - Rust

Function game::app::add_study_area

source ·
fn add_study_area(map: &mut Map, name: &str) -> Result<()>
Expand description

Load an extra GeoJSON file, and add the area to the map dynamically.

\ No newline at end of file diff --git a/rustdoc/game/app/struct.App.html b/rustdoc/game/app/struct.App.html index 4f31f2719e..7fb2a375e3 100644 --- a/rustdoc/game/app/struct.App.html +++ b/rustdoc/game/app/struct.App.html @@ -46,11 +46,11 @@ is in, things like IDs might totally change!

&mut self, ctx: &mut EventCtx<'_>, label: S -) -> Option<IntersectionID>

If an intersection was clicked, return its ID.

-

Trait Implementations§

source§

impl AppLike for App

source§

fn map(&self) -> &Map

source§

fn cs(&self) -> &ColorScheme

source§

fn mut_cs(&mut self) -> &mut ColorScheme

source§

fn draw_map(&self) -> &DrawMap

source§

fn mut_draw_map(&mut self) -> &mut DrawMap

source§

fn opts(&self) -> &Options

source§

fn mut_opts(&mut self) -> &mut Options

source§

fn map_switched( +) -> Option<IntersectionID>

If an intersection was clicked, return its ID.

+

Trait Implementations§

source§

impl AppLike for App

source§

fn map(&self) -> &Map

source§

fn cs(&self) -> &ColorScheme

source§

fn mut_cs(&mut self) -> &mut ColorScheme

source§

fn draw_map(&self) -> &DrawMap

source§

fn mut_draw_map(&mut self) -> &mut DrawMap

source§

fn opts(&self) -> &Options

source§

fn mut_opts(&mut self) -> &mut Options

source§

fn map_switched( &mut self, ctx: &mut EventCtx<'_>, - map: Map, + map: Map, timer: &mut Timer<'_> )

source§

fn draw_with_opts(&self, g: &mut GfxCtx<'_>, opts: DrawOptions)

source§

fn make_warper( &mut self, @@ -60,7 +60,7 @@ is in, things like IDs might totally change!

id: Option<ID> ) -> Box<dyn State<App>>

Create a widgetry::State that warps to the given point.
source§

fn sim_time(&self) -> Time

source§

fn current_stage_and_remaining_time( &self, - id: IntersectionID + id: IntersectionID ) -> (usize, Duration)

source§

fn change_color_scheme( &mut self, ctx: &mut EventCtx<'_>, diff --git a/rustdoc/game/app/struct.FindDelayedIntersections.html b/rustdoc/game/app/struct.FindDelayedIntersections.html index 5cbe06f8cf..908fbfa11a 100644 --- a/rustdoc/game/app/struct.FindDelayedIntersections.html +++ b/rustdoc/game/app/struct.FindDelayedIntersections.html @@ -1,8 +1,8 @@ FindDelayedIntersections in game::app - Rust
pub struct FindDelayedIntersections {
     pub halt_limit: Duration,
     pub report_limit: Duration,
-    pub currently_delayed: Vec<(IntersectionID, Time)>,
-}

Fields§

§halt_limit: Duration§report_limit: Duration§currently_delayed: Vec<(IntersectionID, Time)>

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + pub currently_delayed: Vec<(IntersectionID, Time)>, +}

Fields§

§halt_limit: Duration§report_limit: Duration§currently_delayed: Vec<(IntersectionID, Time)>

Trait Implementations§

source§

impl SimCallback for FindDelayedIntersections

source§

fn run(&mut self, sim: &Sim, _: &Map) -> bool

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere diff --git a/rustdoc/game/app/struct.PerMap.html b/rustdoc/game/app/struct.PerMap.html index 63721a1c88..2649e4ab2e 100644 --- a/rustdoc/game/app/struct.PerMap.html +++ b/rustdoc/game/app/struct.PerMap.html @@ -1,5 +1,5 @@ PerMap in game::app - Rust

Struct game::app::PerMap

source ·
pub struct PerMap {
Show 16 fields - pub map: Map, + pub map: Map, pub draw_map: DrawMap, pub sim: Sim, pub agents: RefCell<AgentCache>, @@ -9,16 +9,16 @@ pub sim_cb: Option<Box<dyn SimCallback>>, pub dirty_from_edits: bool, pub has_modified_trips: bool, - pub unedited_map: Option<Map>, + pub unedited_map: Option<Map>, pub layer: Option<Box<dyn Layer>>, pub suspended_sim: Option<Sim>, prebaked: Option<(MapName, String, Analytics)>, pub scenario: Option<Scenario>, pub is_secondary: bool,
}
Expand description

All of the state that’s bound to a specific map.

-

Fields§

§map: Map§draw_map: DrawMap§sim: Sim§agents: RefCell<AgentCache>§current_selection: Option<ID>§current_flags: Flags§last_warped_from: Option<(Pt2D, f64)>§sim_cb: Option<Box<dyn SimCallback>>§dirty_from_edits: bool

If we ever left edit mode and resumed without restarting from midnight, this is true.

+

Fields§

§map: Map§draw_map: DrawMap§sim: Sim§agents: RefCell<AgentCache>§current_selection: Option<ID>§current_flags: Flags§last_warped_from: Option<(Pt2D, f64)>§sim_cb: Option<Box<dyn SimCallback>>§dirty_from_edits: bool

If we ever left edit mode and resumed without restarting from midnight, this is true.

§has_modified_trips: bool

Any ScenarioModifiers in effect?

-
§unedited_map: Option<Map>

If the map has been edited and app.store_unedited_map_in_secondary is false, store the +

§unedited_map: Option<Map>

If the map has been edited and app.store_unedited_map_in_secondary is false, store the unedited map here.

§layer: Option<Box<dyn Layer>>§suspended_sim: Option<Sim>

Only filled out in edit mode. Stored here once to avoid lots of clones. Used for preview.

§prebaked: Option<(MapName, String, Analytics)>

Only exists in some gameplay modes. Must be carefully reset otherwise. Has the map and @@ -29,7 +29,7 @@ gameplay mode; always verify the name matches what’s needed.

loading it again from a file. This is particularly painful on the web!

§is_secondary: bool

Is this the original “secondary” state, loaded via –diff?

Implementations§

source§

impl PerMap

source

pub fn map_loaded( - map: Map, + map: Map, sim: Sim, flags: Flags, opts: &Options, @@ -42,7 +42,7 @@ loading it again from a file. This is particularly painful on the web!

ctx: &EventCtx<'_>, id: ID, cs: &ColorScheme, - map: &Map, + map: &Map, agents: &mut AgentCache ) -> Option<Tessellation>

Auto Trait Implementations§

§

impl !RefUnwindSafe for PerMap

§

impl !Send for PerMap

§

impl !Sync for PerMap

§

impl Unpin for PerMap

§

impl !UnwindSafe for PerMap

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/rustdoc/game/common/route_sketcher/enum.Mode.html b/rustdoc/game/common/route_sketcher/enum.Mode.html index 74db338925..52911eb40e 100644 --- a/rustdoc/game/common/route_sketcher/enum.Mode.html +++ b/rustdoc/game/common/route_sketcher/enum.Mode.html @@ -1,11 +1,11 @@ Mode in game::common::route_sketcher - Rust
enum Mode {
     Neutral,
-    Hovering(IntersectionID),
+    Hovering(IntersectionID),
     Dragging {
         idx: usize,
-        at: IntersectionID,
+        at: IntersectionID,
     },
-}

Variants§

§

Neutral

§

Hovering(IntersectionID)

§

Dragging

Trait Implementations§

source§

impl Clone for Mode

source§

fn clone(&self) -> Mode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl PartialEq for Mode

source§

fn eq(&self, other: &Mode) -> bool

This method tests for self and other values to be equal, and is used +}

Variants§

§

Neutral

§

Hovering(IntersectionID)

§

Dragging

Fields

§idx: usize
§at: IntersectionID

Trait Implementations§

source§

impl Clone for Mode

source§

fn clone(&self) -> Mode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl PartialEq for Mode

source§

fn eq(&self, other: &Mode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Mode

Auto Trait Implementations§

§

impl RefUnwindSafe for Mode

§

impl Send for Mode

§

impl Sync for Mode

§

impl Unpin for Mode

§

impl UnwindSafe for Mode

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/rustdoc/game/common/route_sketcher/struct.Route.html b/rustdoc/game/common/route_sketcher/struct.Route.html index 7037c93fdd..62bda35340 100644 --- a/rustdoc/game/common/route_sketcher/struct.Route.html +++ b/rustdoc/game/common/route_sketcher/struct.Route.html @@ -1,11 +1,11 @@ Route in game::common::route_sketcher - Rust
struct Route {
-    waypoints: Vec<IntersectionID>,
-    full_path: Vec<IntersectionID>,
-}

Fields§

§waypoints: Vec<IntersectionID>§full_path: Vec<IntersectionID>

Implementations§

source§

impl Route

source

fn new() -> Route

source

fn add_waypoint(&mut self, app: &App, i: IntersectionID)

source

fn idx(&self, i: IntersectionID) -> Option<usize>

source

fn move_waypoint( + waypoints: Vec<IntersectionID>, + full_path: Vec<IntersectionID>, +}

Fields§

§waypoints: Vec<IntersectionID>§full_path: Vec<IntersectionID>

Implementations§

source§

impl Route

source

fn new() -> Route

source

fn add_waypoint(&mut self, app: &App, i: IntersectionID)

source

fn idx(&self, i: IntersectionID) -> Option<usize>

source

fn move_waypoint( &mut self, - map: &Map, + map: &Map, full_idx: usize, - new_i: IntersectionID + new_i: IntersectionID ) -> usize

Trait Implementations§

source§

impl Clone for Route

source§

fn clone(&self) -> Route

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl PartialEq for Route

source§

fn eq(&self, other: &Route) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Route

Auto Trait Implementations§

§

impl RefUnwindSafe for Route

§

impl Send for Route

§

impl Sync for Route

§

impl Unpin for Route

§

impl UnwindSafe for Route

Blanket Implementations§

source§

impl<T> Any for Twhere diff --git a/rustdoc/game/common/route_sketcher/struct.RouteSketcher.html b/rustdoc/game/common/route_sketcher/struct.RouteSketcher.html index 3a854b19bf..0cf42cdf6a 100644 --- a/rustdoc/game/common/route_sketcher/struct.RouteSketcher.html +++ b/rustdoc/game/common/route_sketcher/struct.RouteSketcher.html @@ -1,11 +1,11 @@ RouteSketcher in game::common::route_sketcher - Rust
pub struct RouteSketcher {
-    snap_to_intersections: FindClosest<IntersectionID>,
+    snap_to_intersections: FindClosest<IntersectionID>,
     route: Route,
     mode: Mode,
     preview: DrawUnzoomedShapes,
-}

Fields§

§snap_to_intersections: FindClosest<IntersectionID>§route: Route§mode: Mode§preview: DrawUnzoomedShapes

Implementations§

source§

impl RouteSketcher

source

pub fn new(app: &App) -> RouteSketcher

source

fn mouseover_i(&self, ctx: &EventCtx<'_>) -> Option<IntersectionID>

source

fn update_mode(&mut self, ctx: &mut EventCtx<'_>, app: &App)

source

fn update_preview(&mut self, app: &App)

source

pub fn get_widget_to_describe(&self, ctx: &mut EventCtx<'_>) -> Widget

source

pub fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> bool

True if the route changed

+}

Fields§

§snap_to_intersections: FindClosest<IntersectionID>§route: Route§mode: Mode§preview: DrawUnzoomedShapes

Implementations§

source§

impl RouteSketcher

source

pub fn new(app: &App) -> RouteSketcher

source

fn mouseover_i(&self, ctx: &EventCtx<'_>) -> Option<IntersectionID>

source

fn update_mode(&mut self, ctx: &mut EventCtx<'_>, app: &App)

source

fn update_preview(&mut self, app: &App)

source

pub fn get_widget_to_describe(&self, ctx: &mut EventCtx<'_>) -> Widget

source

pub fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> bool

True if the route changed

source

pub fn on_click(&mut self, x: &str) -> bool

True if something changed. False if this component doesn’t even handle that kind of click.

-
source

pub fn draw(&self, g: &mut GfxCtx<'_>)

source

pub fn all_roads(&self, app: &App) -> Vec<RoadID>

source

pub fn is_route_started(&self) -> bool

Has the user even picked a start point?

+
source

pub fn draw(&self, g: &mut GfxCtx<'_>)

source

pub fn all_roads(&self, app: &App) -> Vec<RoadID>

source

pub fn is_route_started(&self) -> bool

Has the user even picked a start point?

source

pub fn is_route_valid(&self) -> bool

Has the user specified a full route?

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/rustdoc/game/common/select/enum.Mode.html b/rustdoc/game/common/select/enum.Mode.html index d0cf43eb7d..f3abab8456 100644 --- a/rustdoc/game/common/select/enum.Mode.html +++ b/rustdoc/game/common/select/enum.Mode.html @@ -1,13 +1,13 @@ Mode in game::common::select - Rust

Enum game::common::select::Mode

source ·
pub enum Mode {
     Pan,
     Route {
-        i1: Option<IntersectionID>,
-        preview_path: Option<(IntersectionID, Vec<RoadID>, Drawable)>,
+        i1: Option<IntersectionID>,
+        preview_path: Option<(IntersectionID, Vec<RoadID>, Drawable)>,
     },
     Paint,
     Erase,
 }

Variants§

§

Pan

No selecting, just normal click-and-drag controls.

-
§

Route

Fields

§preview_path: Option<(IntersectionID, Vec<RoadID>, Drawable)>

The user is choosing two intersections, to select the route between.

+
§

Route

Fields

§i1: Option<IntersectionID>
§preview_path: Option<(IntersectionID, Vec<RoadID>, Drawable)>

The user is choosing two intersections, to select the route between.

§

Paint

Click and drag to select roads

§

Erase

Click and drag to unselect roads

Auto Trait Implementations§

§

impl RefUnwindSafe for Mode

§

impl !Send for Mode

§

impl !Sync for Mode

§

impl Unpin for Mode

§

impl UnwindSafe for Mode

Blanket Implementations§

source§

impl<T> Any for Twhere diff --git a/rustdoc/game/common/select/struct.RoadSelector.html b/rustdoc/game/common/select/struct.RoadSelector.html index 6096558dcc..1a73f5bfe6 100644 --- a/rustdoc/game/common/select/struct.RoadSelector.html +++ b/rustdoc/game/common/select/struct.RoadSelector.html @@ -1,16 +1,16 @@ RoadSelector in game::common::select - Rust
pub struct RoadSelector {
-    pub roads: BTreeSet<RoadID>,
-    pub intersections: BTreeSet<IntersectionID>,
+    pub roads: BTreeSet<RoadID>,
+    pub intersections: BTreeSet<IntersectionID>,
     pub preview: Option<Drawable>,
     mode: Mode,
     dragging: bool,
 }
Expand description

A tool for selecting multiple roads.

-

Fields§

§roads: BTreeSet<RoadID>§intersections: BTreeSet<IntersectionID>

Intersections can’t be selected directly. If all roads connected to an intersection are +

Fields§

§roads: BTreeSet<RoadID>§intersections: BTreeSet<IntersectionID>

Intersections can’t be selected directly. If all roads connected to an intersection are selected, then the intersection will be too.

§preview: Option<Drawable>§mode: Mode§dragging: bool

Implementations§

source§

impl RoadSelector

source

pub fn new( ctx: &mut EventCtx<'_>, app: &mut App, - roads: BTreeSet<RoadID> + roads: BTreeSet<RoadID> ) -> RoadSelector

source

pub fn make_controls(&self, ctx: &mut EventCtx<'_>) -> Widget

source

fn roads_changed(&mut self, ctx: &mut EventCtx<'_>, app: &App)

source

pub fn event( &mut self, ctx: &mut EventCtx<'_>, diff --git a/rustdoc/game/debug/floodfill/enum.Source.html b/rustdoc/game/debug/floodfill/enum.Source.html index 724f2a10ec..e53ba85bac 100644 --- a/rustdoc/game/debug/floodfill/enum.Source.html +++ b/rustdoc/game/debug/floodfill/enum.Source.html @@ -1,11 +1,11 @@ Source in game::debug::floodfill - Rust

Enum game::debug::floodfill::Source

source ·
enum Source {
-    Floodfill(LaneID),
+    Floodfill(LaneID),
     Scc,
-}

Variants§

§

Floodfill(LaneID)

§

Scc

Implementations§

source§

impl Source

source

fn calculate( +}

Variants§

§

Floodfill(LaneID)

§

Scc

Implementations§

source§

impl Source

source

fn calculate( &self, - map: &Map, - constraints: PathConstraints -) -> (HashSet<LaneID>, HashSet<LaneID>, String)

Trait Implementations§

source§

impl Clone for Source

source§

fn clone(&self) -> Source

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + map: &Map, + constraints: PathConstraints +) -> (HashSet<LaneID>, HashSet<LaneID>, String)

Trait Implementations§

source§

impl Clone for Source

source§

fn clone(&self) -> Source

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere diff --git a/rustdoc/game/debug/floodfill/struct.Floodfiller.html b/rustdoc/game/debug/floodfill/struct.Floodfiller.html index ded6149d7f..b8b916cbab 100644 --- a/rustdoc/game/debug/floodfill/struct.Floodfiller.html +++ b/rustdoc/game/debug/floodfill/struct.Floodfiller.html @@ -5,12 +5,12 @@ }

Fields§

§panel: Panel§draw: ToggleZoomed§source: Source

Implementations§

source§

impl Floodfiller

source

pub fn floodfill( ctx: &mut EventCtx<'_>, app: &App, - l: LaneID -) -> Box<dyn State<App>>

source

pub fn scc(ctx: &mut EventCtx<'_>, app: &App, l: LaneID) -> Box<dyn State<App>>

source

fn new_state( + l: LaneID +) -> Box<dyn State<App>>

source

pub fn scc(ctx: &mut EventCtx<'_>, app: &App, l: LaneID) -> Box<dyn State<App>>

source

fn new_state( ctx: &mut EventCtx<'_>, app: &App, source: Source, - constraints: PathConstraints + constraints: PathConstraints ) -> Box<dyn State<App>>

Trait Implementations§

source§

impl State<App> for Floodfiller

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw(&self, g: &mut GfxCtx<'_>, _: &App)

Draw
§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving the State-specific state appropriately.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/rustdoc/game/debug/objects/struct.ObjectDebugger.html b/rustdoc/game/debug/objects/struct.ObjectDebugger.html index 477592e51c..59b9e215b2 100644 --- a/rustdoc/game/debug/objects/struct.ObjectDebugger.html +++ b/rustdoc/game/debug/objects/struct.ObjectDebugger.html @@ -1,4 +1,4 @@ -ObjectDebugger in game::debug::objects - Rust
pub struct ObjectDebugger;

Implementations§

source§

impl ObjectDebugger

source

pub fn draw(&self, g: &mut GfxCtx<'_>, app: &App)

source

pub fn dump_debug(id: ID, map: &Map, sim: &Sim)

source

pub fn debug_json(id: ID, map: &Map, sim: &Sim)

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +ObjectDebugger in game::debug::objects - Rust
pub struct ObjectDebugger;

Implementations§

source§

impl ObjectDebugger

source

pub fn draw(&self, g: &mut GfxCtx<'_>, app: &App)

source

pub fn dump_debug(id: ID, map: &Map, sim: &Sim)

source

pub fn debug_json(id: ID, map: &Map, sim: &Sim)

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere diff --git a/rustdoc/game/debug/path_counter/struct.PathCounter.html b/rustdoc/game/debug/path_counter/struct.PathCounter.html index 7d7a0b683f..1cb13fa48e 100644 --- a/rustdoc/game/debug/path_counter/struct.PathCounter.html +++ b/rustdoc/game/debug/path_counter/struct.PathCounter.html @@ -1,13 +1,13 @@ PathCounter in game::debug::path_counter - Rust
pub struct PathCounter {
     panel: Panel,
     draw: ToggleZoomed,
-    cnt: Counter<RoadID>,
+    cnt: Counter<RoadID>,
     tooltip: Option<Text>,
 }
Expand description

A state to count the number of trips that will cross different roads.

-

Fields§

§panel: Panel§draw: ToggleZoomed§cnt: Counter<RoadID>§tooltip: Option<Text>

Implementations§

source§

impl PathCounter

Fields§

§panel: Panel§draw: ToggleZoomed§cnt: Counter<RoadID>§tooltip: Option<Text>

Implementations§

source§

impl PathCounter

source

pub fn demand_across_intersection( ctx: &mut EventCtx<'_>, app: &App, - i: IntersectionID + i: IntersectionID ) -> Box<dyn State<App>>

Trait Implementations§

source§

impl State<App> for PathCounter

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw(&self, g: &mut GfxCtx<'_>, app: &App)

Draw
§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving the State-specific state appropriately.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/rustdoc/game/debug/routes/fn.calculate_demand.html b/rustdoc/game/debug/routes/fn.calculate_demand.html index 8cb62f6ce3..895cda71e6 100644 --- a/rustdoc/game/debug/routes/fn.calculate_demand.html +++ b/rustdoc/game/debug/routes/fn.calculate_demand.html @@ -1,6 +1,6 @@ calculate_demand in game::debug::routes - Rust
fn calculate_demand(
     app: &App,
-    pathfinder: &Pathfinder,
-    requests: &[PathRequest],
+    pathfinder: &Pathfinder,
+    requests: &[PathRequest],
     timer: &mut Timer<'_>
-) -> Counter<RoadID>
\ No newline at end of file +) -> Counter<RoadID>

\ No newline at end of file diff --git a/rustdoc/game/debug/routes/fn.controls_to_params.html b/rustdoc/game/debug/routes/fn.controls_to_params.html index 2bd4d9fb28..0bf1bf3824 100644 --- a/rustdoc/game/debug/routes/fn.controls_to_params.html +++ b/rustdoc/game/debug/routes/fn.controls_to_params.html @@ -1 +1 @@ -controls_to_params in game::debug::routes - Rust
fn controls_to_params(panel: &Panel) -> (TripMode, RoutingParams)
\ No newline at end of file +controls_to_params in game::debug::routes - Rust
fn controls_to_params(panel: &Panel) -> (TripMode, RoutingParams)
\ No newline at end of file diff --git a/rustdoc/game/debug/routes/fn.params_to_controls.html b/rustdoc/game/debug/routes/fn.params_to_controls.html index 91bed70bd3..108f71d02f 100644 --- a/rustdoc/game/debug/routes/fn.params_to_controls.html +++ b/rustdoc/game/debug/routes/fn.params_to_controls.html @@ -1,5 +1,5 @@ params_to_controls in game::debug::routes - Rust
fn params_to_controls(
     ctx: &mut EventCtx<'_>,
     mode: TripMode,
-    params: &RoutingParams
+    params: &RoutingParams
 ) -> Widget
\ No newline at end of file diff --git a/rustdoc/game/debug/routes/struct.AllRoutesExplorer.html b/rustdoc/game/debug/routes/struct.AllRoutesExplorer.html index fa7b890119..a35cd4b921 100644 --- a/rustdoc/game/debug/routes/struct.AllRoutesExplorer.html +++ b/rustdoc/game/debug/routes/struct.AllRoutesExplorer.html @@ -1,12 +1,12 @@ AllRoutesExplorer in game::debug::routes - Rust
struct AllRoutesExplorer {
     panel: Panel,
-    requests: Vec<PathRequest>,
-    baseline_counts: Counter<RoadID>,
-    current_counts: Counter<RoadID>,
+    requests: Vec<PathRequest>,
+    baseline_counts: Counter<RoadID>,
+    current_counts: Counter<RoadID>,
     draw: ToggleZoomed,
     tooltip: Option<Text>,
 }
Expand description

See how live-tuned routing parameters affect all requests for the current scenario.

-

Fields§

§panel: Panel§requests: Vec<PathRequest>§baseline_counts: Counter<RoadID>§current_counts: Counter<RoadID>§draw: ToggleZoomed§tooltip: Option<Text>

Implementations§

source§

impl AllRoutesExplorer

source

fn new_state(ctx: &mut EventCtx<'_>, app: &mut App) -> Box<dyn State<App>>

Trait Implementations§

source§

impl State<App> for AllRoutesExplorer

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw(&self, g: &mut GfxCtx<'_>, app: &App)

Draw
§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving +

Fields§

§panel: Panel§requests: Vec<PathRequest>§baseline_counts: Counter<RoadID>§current_counts: Counter<RoadID>§draw: ToggleZoomed§tooltip: Option<Text>

Implementations§

source§

impl AllRoutesExplorer

source

fn new_state(ctx: &mut EventCtx<'_>, app: &mut App) -> Box<dyn State<App>>

Trait Implementations§

source§

impl State<App> for AllRoutesExplorer

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw(&self, g: &mut GfxCtx<'_>, app: &App)

Draw
§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving the State-specific state appropriately.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere diff --git a/rustdoc/game/debug/routes/struct.PathCostDebugger.html b/rustdoc/game/debug/routes/struct.PathCostDebugger.html index a326a20bbe..6d2df26099 100644 --- a/rustdoc/game/debug/routes/struct.PathCostDebugger.html +++ b/rustdoc/game/debug/routes/struct.PathCostDebugger.html @@ -1,14 +1,14 @@ PathCostDebugger in game::debug::routes - Rust
pub struct PathCostDebugger {
     draw_path: Drawable,
-    costs: HashMap<DirectedRoadID, Duration>,
+    costs: HashMap<DirectedRoadID, Duration>,
     tooltip: Option<Text>,
     panel: Panel,
 }
Expand description

Evaluate why an alternative path wasn’t chosen, by showing the cost to reach every road from one start.

-

Fields§

§draw_path: Drawable§costs: HashMap<DirectedRoadID, Duration>§tooltip: Option<Text>§panel: Panel

Implementations§

source§

impl PathCostDebugger

source

pub fn maybe_new( +

Fields§

§draw_path: Drawable§costs: HashMap<DirectedRoadID, Duration>§tooltip: Option<Text>§panel: Panel

Implementations§

source§

impl PathCostDebugger

source

pub fn maybe_new( ctx: &mut EventCtx<'_>, app: &App, - req: PathRequest, + req: PathRequest, draw_path: Polygon ) -> Option<Box<dyn State<App>>>

Trait Implementations§

source§

impl State<App> for PathCostDebugger

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw(&self, g: &mut GfxCtx<'_>, _: &App)

Draw
§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving the State-specific state appropriately.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere diff --git a/rustdoc/game/debug/select_roads/struct.BulkSelect.html b/rustdoc/game/debug/select_roads/struct.BulkSelect.html index 87b2ddbdeb..7878e554e5 100644 --- a/rustdoc/game/debug/select_roads/struct.BulkSelect.html +++ b/rustdoc/game/debug/select_roads/struct.BulkSelect.html @@ -4,7 +4,7 @@ }

Fields§

§panel: Panel§selector: RoadSelector

Implementations§

source§

impl BulkSelect

source

pub fn new_state( ctx: &mut EventCtx<'_>, app: &mut App, - start: RoadID + start: RoadID ) -> Box<dyn State<App>>

Trait Implementations§

source§

impl State<App> for BulkSelect

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw(&self, g: &mut GfxCtx<'_>, app: &App)

Draw
§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving the State-specific state appropriately.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/rustdoc/game/debug/struct.DebugMode.html b/rustdoc/game/debug/struct.DebugMode.html index af392f07e8..8b960d416e 100644 --- a/rustdoc/game/debug/struct.DebugMode.html +++ b/rustdoc/game/debug/struct.DebugMode.html @@ -7,8 +7,8 @@ layers: ShowLayers, search_results: Option<SearchResults>, all_routes: Option<(usize, Drawable)>, - highlighted_agents: Cached<IntersectionID, Drawable>, -}

Fields§

§panel: Panel§common: CommonState§tool_panel: Panel§objects: ObjectDebugger§hidden: HashSet<ID>§layers: ShowLayers§search_results: Option<SearchResults>§all_routes: Option<(usize, Drawable)>§highlighted_agents: Cached<IntersectionID, Drawable>

Implementations§

source§

impl DebugMode

source

pub fn new_state(ctx: &mut EventCtx<'_>, app: &App) -> Box<dyn State<App>>

source

fn reset_info(&mut self, ctx: &mut EventCtx<'_>)

Trait Implementations§

source§

impl ShowObject for DebugMode

source§

fn show(&self, obj: &ID) -> bool

source§

fn layers(&self) -> &ShowLayers

source§

impl State<App> for DebugMode

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
source§

fn draw(&self, g: &mut GfxCtx<'_>, app: &App)

Draw
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving + highlighted_agents: Cached<IntersectionID, Drawable>, +}

Fields§

§panel: Panel§common: CommonState§tool_panel: Panel§objects: ObjectDebugger§hidden: HashSet<ID>§layers: ShowLayers§search_results: Option<SearchResults>§all_routes: Option<(usize, Drawable)>§highlighted_agents: Cached<IntersectionID, Drawable>

Implementations§

source§

impl DebugMode

source

pub fn new_state(ctx: &mut EventCtx<'_>, app: &App) -> Box<dyn State<App>>

source

fn reset_info(&mut self, ctx: &mut EventCtx<'_>)

Trait Implementations§

source§

impl ShowObject for DebugMode

source§

fn show(&self, obj: &ID) -> bool

source§

fn layers(&self) -> &ShowLayers

source§

impl State<App> for DebugMode

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
source§

fn draw(&self, g: &mut GfxCtx<'_>, app: &App)

Draw
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving the State-specific state appropriately.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere diff --git a/rustdoc/game/debug/uber_turns/struct.UberTurnPicker.html b/rustdoc/game/debug/uber_turns/struct.UberTurnPicker.html index 80c4648c5c..b98335a458 100644 --- a/rustdoc/game/debug/uber_turns/struct.UberTurnPicker.html +++ b/rustdoc/game/debug/uber_turns/struct.UberTurnPicker.html @@ -1,9 +1,9 @@ UberTurnPicker in game::debug::uber_turns - Rust
pub struct UberTurnPicker {
-    members: BTreeSet<IntersectionID>,
-}

Fields§

§members: BTreeSet<IntersectionID>

Implementations§

source§

impl UberTurnPicker

source

pub fn new_state( + members: BTreeSet<IntersectionID>, +}

Fields§

§members: BTreeSet<IntersectionID>

Implementations§

source§

impl UberTurnPicker

source

pub fn new_state( ctx: &mut EventCtx<'_>, app: &App, - i: IntersectionID + i: IntersectionID ) -> Box<dyn State<App>>

Trait Implementations§

source§

impl SimpleState<App> for UberTurnPicker

source§

fn on_click( &mut self, ctx: &mut EventCtx<'_>, diff --git a/rustdoc/game/debug/uber_turns/struct.UberTurnViewer.html b/rustdoc/game/debug/uber_turns/struct.UberTurnViewer.html index 4ef2e7bb55..d8dbdcdbbe 100644 --- a/rustdoc/game/debug/uber_turns/struct.UberTurnViewer.html +++ b/rustdoc/game/debug/uber_turns/struct.UberTurnViewer.html @@ -1,12 +1,12 @@ UberTurnViewer in game::debug::uber_turns - Rust
struct UberTurnViewer {
     draw: Drawable,
-    ic: IntersectionCluster,
+    ic: IntersectionCluster,
     idx: usize,
     legal_turns: bool,
-}

Fields§

§draw: Drawable§ic: IntersectionCluster§idx: usize§legal_turns: bool

Implementations§

source§

impl UberTurnViewer

source

pub fn new_state( +}

Fields§

§draw: Drawable§ic: IntersectionCluster§idx: usize§legal_turns: bool

Implementations§

source§

impl UberTurnViewer

source

pub fn new_state( ctx: &mut EventCtx<'_>, app: &mut App, - members: BTreeSet<IntersectionID>, + members: BTreeSet<IntersectionID>, idx: usize, legal_turns: bool ) -> Box<dyn State<App>>

Trait Implementations§

source§

impl SimpleState<App> for UberTurnViewer

source§

fn on_click( diff --git a/rustdoc/game/devtools/collisions/fn.aggregated.html b/rustdoc/game/devtools/collisions/fn.aggregated.html index 3916543283..615a4a03cb 100644 --- a/rustdoc/game/devtools/collisions/fn.aggregated.html +++ b/rustdoc/game/devtools/collisions/fn.aggregated.html @@ -1,6 +1,6 @@ aggregated in game::devtools::collisions - Rust
fn aggregated(
     ctx: &mut EventCtx<'_>,
     app: &App,
-    data: &CollisionDataset,
+    data: &CollisionDataset,
     indices: Vec<usize>
 ) -> World<DummyID>
\ No newline at end of file diff --git a/rustdoc/game/devtools/collisions/fn.individual.html b/rustdoc/game/devtools/collisions/fn.individual.html index 429297c546..97d09b8e18 100644 --- a/rustdoc/game/devtools/collisions/fn.individual.html +++ b/rustdoc/game/devtools/collisions/fn.individual.html @@ -1,6 +1,6 @@ individual in game::devtools::collisions - Rust
fn individual(
     ctx: &mut EventCtx<'_>,
     app: &App,
-    data: &CollisionDataset,
+    data: &CollisionDataset,
     indices: Vec<usize>
 ) -> World<DummyID>
\ No newline at end of file diff --git a/rustdoc/game/devtools/collisions/struct.CollisionsViewer.html b/rustdoc/game/devtools/collisions/struct.CollisionsViewer.html index d9fe4b492a..32fef322d5 100644 --- a/rustdoc/game/devtools/collisions/struct.CollisionsViewer.html +++ b/rustdoc/game/devtools/collisions/struct.CollisionsViewer.html @@ -1,8 +1,8 @@ CollisionsViewer in game::devtools::collisions - Rust
pub struct CollisionsViewer {
-    data: CollisionDataset,
+    data: CollisionDataset,
     world: World<DummyID>,
     panel: Panel,
-}

Fields§

§data: CollisionDataset§world: World<DummyID>§panel: Panel

Implementations§

source§

impl CollisionsViewer

source

pub fn new_state(ctx: &mut EventCtx<'_>, app: &App) -> Box<dyn State<App>>

Trait Implementations§

source§

impl State<App> for CollisionsViewer

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw(&self, g: &mut GfxCtx<'_>, _: &App)

Draw
§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving +}

Fields§

§data: CollisionDataset§world: World<DummyID>§panel: Panel

Implementations§

source§

impl CollisionsViewer

source

pub fn new_state(ctx: &mut EventCtx<'_>, app: &App) -> Box<dyn State<App>>

Trait Implementations§

source§

impl State<App> for CollisionsViewer

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw(&self, g: &mut GfxCtx<'_>, _: &App)

Draw
§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving the State-specific state appropriately.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere diff --git a/rustdoc/game/devtools/collisions/struct.Filters.html b/rustdoc/game/devtools/collisions/struct.Filters.html index c52fa36819..ef3f8c1cec 100644 --- a/rustdoc/game/devtools/collisions/struct.Filters.html +++ b/rustdoc/game/devtools/collisions/struct.Filters.html @@ -1,8 +1,8 @@ Filters in game::devtools::collisions - Rust
struct Filters {
     show_individual: bool,
     time_range: (Duration, Duration),
-    severity: Option<Severity>,
-}

Fields§

§show_individual: bool§time_range: (Duration, Duration)§severity: Option<Severity>

Implementations§

source§

impl Filters

source

fn new() -> Filters

source

fn apply(&self, data: &CollisionDataset) -> Vec<usize>

Returns the indices of all matching collisions

+ severity: Option<Severity>, +}

Fields§

§show_individual: bool§time_range: (Duration, Duration)§severity: Option<Severity>

Implementations§

source§

impl Filters

source

fn new() -> Filters

source

fn apply(&self, data: &CollisionDataset) -> Vec<usize>

Returns the indices of all matching collisions

source

fn make_controls(ctx: &mut EventCtx<'_>) -> Widget

source

fn from_controls(panel: &Panel) -> Filters

Trait Implementations§

source§

impl PartialEq for Filters

source§

fn eq(&self, other: &Filters) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Filters

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere diff --git a/rustdoc/game/devtools/destinations/struct.PopularDestinations.html b/rustdoc/game/devtools/destinations/struct.PopularDestinations.html index 8d104e74e4..1f3d7726a3 100644 --- a/rustdoc/game/devtools/destinations/struct.PopularDestinations.html +++ b/rustdoc/game/devtools/destinations/struct.PopularDestinations.html @@ -1,15 +1,15 @@ PopularDestinations in game::devtools::destinations - Rust
pub struct PopularDestinations {
-    per_bldg: Counter<BuildingID>,
+    per_bldg: Counter<BuildingID>,
     panel: Panel,
     draw: Drawable,
-}

Fields§

§per_bldg: Counter<BuildingID>§panel: Panel§draw: Drawable

Implementations§

source§

impl PopularDestinations

source

pub fn new_state( +}

Fields§

§per_bldg: Counter<BuildingID>§panel: Panel§draw: Drawable

Implementations§

source§

impl PopularDestinations

source

pub fn new_state( ctx: &mut EventCtx<'_>, app: &App, scenario: &Scenario ) -> Box<dyn State<App>>

source

fn make( ctx: &mut EventCtx<'_>, app: &App, - per_bldg: Counter<BuildingID>, + per_bldg: Counter<BuildingID>, opts: Option<HeatmapOptions> ) -> Box<dyn State<App>>

Trait Implementations§

source§

impl State<App> for PopularDestinations

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw(&self, g: &mut GfxCtx<'_>, app: &App)

Draw
§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving the State-specific state appropriately.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere diff --git a/rustdoc/game/devtools/kml/fn.make_object.html b/rustdoc/game/devtools/kml/fn.make_object.html index 60c21ba64e..b10b7ecd2e 100644 --- a/rustdoc/game/devtools/kml/fn.make_object.html +++ b/rustdoc/game/devtools/kml/fn.make_object.html @@ -1,6 +1,6 @@ make_object in game::devtools::kml - Rust

Function game::devtools::kml::make_object

source ·
fn make_object(
     cs: &ColorScheme,
-    bldg_lookup: &HashMap<String, BuildingID>,
+    bldg_lookup: &HashMap<String, BuildingID>,
     attribs: BTreeMap<String, String>,
     pts: Vec<Pt2D>,
     dataset_name: &str,
diff --git a/rustdoc/game/devtools/kml/struct.Object.html b/rustdoc/game/devtools/kml/struct.Object.html
index 2890e87d8e..896e33cdbf 100644
--- a/rustdoc/game/devtools/kml/struct.Object.html
+++ b/rustdoc/game/devtools/kml/struct.Object.html
@@ -2,8 +2,8 @@
     polygon: Polygon,
     color: Color,
     attribs: BTreeMap<String, String>,
-    osm_bldg: Option<BuildingID>,
-}

Fields§

§polygon: Polygon§color: Color§attribs: BTreeMap<String, String>§osm_bldg: Option<BuildingID>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + osm_bldg: Option<BuildingID>, +}

Fields§

§polygon: Polygon§color: Color§attribs: BTreeMap<String, String>§osm_bldg: Option<BuildingID>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere diff --git a/rustdoc/game/edit/crosswalks/struct.CrosswalkEditor.html b/rustdoc/game/edit/crosswalks/struct.CrosswalkEditor.html index 3ce488cc05..c3aa686029 100644 --- a/rustdoc/game/edit/crosswalks/struct.CrosswalkEditor.html +++ b/rustdoc/game/edit/crosswalks/struct.CrosswalkEditor.html @@ -1,11 +1,11 @@ CrosswalkEditor in game::edit::crosswalks - Rust
pub struct CrosswalkEditor {
-    id: IntersectionID,
+    id: IntersectionID,
     world: World<ID>,
     panel: Panel,
-}

Fields§

§id: IntersectionID§world: World<ID>§panel: Panel

Implementations§

source§

impl CrosswalkEditor

source

pub fn new_state( +}

Fields§

§id: IntersectionID§world: World<ID>§panel: Panel

Implementations§

source§

impl CrosswalkEditor

source

pub fn new_state( ctx: &mut EventCtx<'_>, app: &mut App, - id: IntersectionID + id: IntersectionID ) -> Box<dyn State<App>>

Trait Implementations§

source§

impl State<App> for CrosswalkEditor

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw(&self, g: &mut GfxCtx<'_>, _: &App)

Draw
§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving the State-specific state appropriately.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/rustdoc/game/edit/crosswalks/struct.ID.html b/rustdoc/game/edit/crosswalks/struct.ID.html index df6044e3ec..c7a920a661 100644 --- a/rustdoc/game/edit/crosswalks/struct.ID.html +++ b/rustdoc/game/edit/crosswalks/struct.ID.html @@ -1,4 +1,4 @@ -ID in game::edit::crosswalks - Rust

Struct game::edit::crosswalks::ID

source ·
struct ID(TurnID);

Tuple Fields§

§0: TurnID

Trait Implementations§

source§

impl Clone for ID

source§

fn clone(&self) -> ID

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ID

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for ID

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where +ID in game::edit::crosswalks - Rust

Struct game::edit::crosswalks::ID

source ·
struct ID(TurnID);

Tuple Fields§

§0: TurnID

Trait Implementations§

source§

impl Clone for ID

source§

fn clone(&self) -> ID

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ID

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for ID

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for ID

source§

fn eq(&self, other: &ID) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always diff --git a/rustdoc/game/edit/fn.apply_map_edits.html b/rustdoc/game/edit/fn.apply_map_edits.html index 1f044940a5..af9fc0c26b 100644 --- a/rustdoc/game/edit/fn.apply_map_edits.html +++ b/rustdoc/game/edit/fn.apply_map_edits.html @@ -1 +1 @@ -apply_map_edits in game::edit - Rust

Function game::edit::apply_map_edits

source ·
pub fn apply_map_edits(ctx: &mut EventCtx<'_>, app: &mut App, edits: MapEdits)
\ No newline at end of file +apply_map_edits in game::edit - Rust

Function game::edit::apply_map_edits

source ·
pub fn apply_map_edits(ctx: &mut EventCtx<'_>, app: &mut App, edits: MapEdits)
\ No newline at end of file diff --git a/rustdoc/game/edit/fn.can_edit_lane.html b/rustdoc/game/edit/fn.can_edit_lane.html index 82c6ce0f7c..e5c714b5fa 100644 --- a/rustdoc/game/edit/fn.can_edit_lane.html +++ b/rustdoc/game/edit/fn.can_edit_lane.html @@ -1 +1 @@ -can_edit_lane in game::edit - Rust

Function game::edit::can_edit_lane

source ·
pub fn can_edit_lane(app: &App, l: LaneID) -> bool
\ No newline at end of file +can_edit_lane in game::edit - Rust

Function game::edit::can_edit_lane

source ·
pub fn can_edit_lane(app: &App, l: LaneID) -> bool
\ No newline at end of file diff --git a/rustdoc/game/edit/fn.cmd_to_id.html b/rustdoc/game/edit/fn.cmd_to_id.html index 7fc3afc70a..2fc4b198b0 100644 --- a/rustdoc/game/edit/fn.cmd_to_id.html +++ b/rustdoc/game/edit/fn.cmd_to_id.html @@ -1 +1 @@ -cmd_to_id in game::edit - Rust

Function game::edit::cmd_to_id

source ·
fn cmd_to_id(cmd: &EditCmd) -> Option<ID>
\ No newline at end of file +cmd_to_id in game::edit - Rust

Function game::edit::cmd_to_id

source ·
fn cmd_to_id(cmd: &EditCmd) -> Option<ID>
\ No newline at end of file diff --git a/rustdoc/game/edit/fn.maybe_edit_intersection.html b/rustdoc/game/edit/fn.maybe_edit_intersection.html index 1203ae9540..e99798cce6 100644 --- a/rustdoc/game/edit/fn.maybe_edit_intersection.html +++ b/rustdoc/game/edit/fn.maybe_edit_intersection.html @@ -1,6 +1,6 @@ maybe_edit_intersection in game::edit - Rust
pub fn maybe_edit_intersection(
     ctx: &mut EventCtx<'_>,
     app: &mut App,
-    id: IntersectionID,
+    id: IntersectionID,
     mode: &GameplayMode
 ) -> Option<Box<dyn State<App>>>
\ No newline at end of file diff --git a/rustdoc/game/edit/multiple_roads/struct.SelectSegments.html b/rustdoc/game/edit/multiple_roads/struct.SelectSegments.html index 36996d39a2..a814bf3996 100644 --- a/rustdoc/game/edit/multiple_roads/struct.SelectSegments.html +++ b/rustdoc/game/edit/multiple_roads/struct.SelectSegments.html @@ -1,19 +1,19 @@ SelectSegments in game::edit::multiple_roads - Rust
pub struct SelectSegments {
-    new_state: EditRoad,
-    candidates: HashSet<RoadID>,
-    base_road: RoadID,
-    base_edits: MapEdits,
-    current: HashSet<RoadID>,
+    new_state: EditRoad,
+    candidates: HashSet<RoadID>,
+    base_road: RoadID,
+    base_edits: MapEdits,
+    current: HashSet<RoadID>,
     draw: Drawable,
     panel: Panel,
-    selected: Option<RoadID>,
-}

Fields§

§new_state: EditRoad§candidates: HashSet<RoadID>§base_road: RoadID§base_edits: MapEdits§current: HashSet<RoadID>§draw: Drawable§panel: Panel§selected: Option<RoadID>

Implementations§

source§

impl SelectSegments

source

pub fn new_state( + selected: Option<RoadID>, +}

Fields§

§new_state: EditRoad§candidates: HashSet<RoadID>§base_road: RoadID§base_edits: MapEdits§current: HashSet<RoadID>§draw: Drawable§panel: Panel§selected: Option<RoadID>

Implementations§

source§

impl SelectSegments

source

pub fn new_state( ctx: &mut EventCtx<'_>, app: &mut App, - base_road: RoadID, - orig_state: EditRoad, - new_state: EditRoad, - base_edits: MapEdits + base_road: RoadID, + orig_state: EditRoad, + new_state: EditRoad, + base_edits: MapEdits ) -> Box<dyn State<App>>

source

fn recalculate(&mut self, ctx: &mut EventCtx<'_>, app: &App)

Trait Implementations§

source§

impl State<App> for SelectSegments

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw(&self, g: &mut GfxCtx<'_>, _: &App)

Draw
source§

fn on_destroy(&mut self, ctx: &mut EventCtx<'_>, _: &mut App)

Before this state is popped or replaced, call this.
§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving the State-specific state appropriately.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/rustdoc/game/edit/roads/fn.build_lane_highlights.html b/rustdoc/game/edit/roads/fn.build_lane_highlights.html index 1ce7e0634e..e87a799bd8 100644 --- a/rustdoc/game/edit/roads/fn.build_lane_highlights.html +++ b/rustdoc/game/edit/roads/fn.build_lane_highlights.html @@ -1,6 +1,6 @@ build_lane_highlights in game::edit::roads - Rust
fn build_lane_highlights(
     ctx: &EventCtx<'_>,
     app: &App,
-    selected_lane: Option<LaneID>,
-    hovered_lane: Option<LaneID>
-) -> ((Option<LaneID>, Option<LaneID>), Drawable)
\ No newline at end of file + selected_lane: Option<LaneID>, + hovered_lane: Option<LaneID> +) -> ((Option<LaneID>, Option<LaneID>), Drawable)

\ No newline at end of file diff --git a/rustdoc/game/edit/roads/fn.draw_drop_position.html b/rustdoc/game/edit/roads/fn.draw_drop_position.html index 5648d6f6a5..d0b6876bbe 100644 --- a/rustdoc/game/edit/roads/fn.draw_drop_position.html +++ b/rustdoc/game/edit/roads/fn.draw_drop_position.html @@ -1 +1 @@ -draw_drop_position in game::edit::roads - Rust
fn draw_drop_position(app: &App, r: RoadID, from: usize, to: usize) -> GeomBatch
\ No newline at end of file +draw_drop_position in game::edit::roads - Rust
fn draw_drop_position(app: &App, r: RoadID, from: usize, to: usize) -> GeomBatch
\ No newline at end of file diff --git a/rustdoc/game/edit/roads/fn.fade_irrelevant.html b/rustdoc/game/edit/roads/fn.fade_irrelevant.html index e37c3115f9..d25a8cdcf5 100644 --- a/rustdoc/game/edit/roads/fn.fade_irrelevant.html +++ b/rustdoc/game/edit/roads/fn.fade_irrelevant.html @@ -1 +1 @@ -fade_irrelevant in game::edit::roads - Rust

Function game::edit::roads::fade_irrelevant

source ·
fn fade_irrelevant(app: &App, r: RoadID) -> GeomBatch
\ No newline at end of file +fade_irrelevant in game::edit::roads - Rust

Function game::edit::roads::fade_irrelevant

source ·
fn fade_irrelevant(app: &App, r: RoadID) -> GeomBatch
\ No newline at end of file diff --git a/rustdoc/game/edit/roads/fn.make_main_panel.html b/rustdoc/game/edit/roads/fn.make_main_panel.html index 9d3162df96..9a3020d318 100644 --- a/rustdoc/game/edit/roads/fn.make_main_panel.html +++ b/rustdoc/game/edit/roads/fn.make_main_panel.html @@ -1,7 +1,7 @@ make_main_panel in game::edit::roads - Rust

Function game::edit::roads::make_main_panel

source ·
fn make_main_panel(
     ctx: &mut EventCtx<'_>,
     app: &App,
-    road: &Road,
-    selected_lane: Option<LaneID>,
-    hovering_on_lane: Option<LaneID>
+    road: &Road,
+    selected_lane: Option<LaneID>,
+    hovering_on_lane: Option<LaneID>
 ) -> Panel
\ No newline at end of file diff --git a/rustdoc/game/edit/roads/fn.make_top_panel.html b/rustdoc/game/edit/roads/fn.make_top_panel.html index b6e3d507cf..c1e2858e0e 100644 --- a/rustdoc/game/edit/roads/fn.make_top_panel.html +++ b/rustdoc/game/edit/roads/fn.make_top_panel.html @@ -3,6 +3,6 @@ app: &App, num_edit_cmds_originally: usize, no_redo_cmds: bool, - r: RoadID, - orig_road_state: EditRoad + r: RoadID, + orig_road_state: EditRoad ) -> Panel
\ No newline at end of file diff --git a/rustdoc/game/edit/roads/fn.width_choices.html b/rustdoc/game/edit/roads/fn.width_choices.html index 341c771a00..16afcec789 100644 --- a/rustdoc/game/edit/roads/fn.width_choices.html +++ b/rustdoc/game/edit/roads/fn.width_choices.html @@ -1 +1 @@ -width_choices in game::edit::roads - Rust

Function game::edit::roads::width_choices

source ·
fn width_choices(app: &App, l: LaneID) -> Vec<Choice<Distance>>
\ No newline at end of file +width_choices in game::edit::roads - Rust

Function game::edit::roads::width_choices

source ·
fn width_choices(app: &App, l: LaneID) -> Vec<Choice<Distance>>
\ No newline at end of file diff --git a/rustdoc/game/edit/roads/struct.RoadEditor.html b/rustdoc/game/edit/roads/struct.RoadEditor.html index aa391e51bc..1c14f0b75c 100644 --- a/rustdoc/game/edit/roads/struct.RoadEditor.html +++ b/rustdoc/game/edit/roads/struct.RoadEditor.html @@ -1,36 +1,36 @@ RoadEditor in game::edit::roads - Rust

Struct game::edit::roads::RoadEditor

source ·
pub struct RoadEditor {
-    r: RoadID,
-    selected_lane: Option<LaneID>,
-    hovering_on_lane: Option<LaneID>,
+    r: RoadID,
+    selected_lane: Option<LaneID>,
+    hovering_on_lane: Option<LaneID>,
     top_panel: Panel,
     main_panel: Panel,
     fade_irrelevant: Drawable,
-    lane_highlights: ((Option<LaneID>, Option<LaneID>), Drawable),
+    lane_highlights: ((Option<LaneID>, Option<LaneID>), Drawable),
     draw_drop_position: Drawable,
     num_edit_cmds_originally: usize,
-    redo_stack: Vec<EditCmd>,
-    orig_road_state: EditRoad,
-}

Fields§

§r: RoadID§selected_lane: Option<LaneID>§hovering_on_lane: Option<LaneID>§top_panel: Panel§main_panel: Panel§fade_irrelevant: Drawable§lane_highlights: ((Option<LaneID>, Option<LaneID>), Drawable)§draw_drop_position: Drawable§num_edit_cmds_originally: usize§redo_stack: Vec<EditCmd>§orig_road_state: EditRoad

Implementations§

source§

impl RoadEditor

source

pub fn new_state( + redo_stack: Vec<EditCmd>, + orig_road_state: EditRoad, +}

Fields§

§r: RoadID§selected_lane: Option<LaneID>§hovering_on_lane: Option<LaneID>§top_panel: Panel§main_panel: Panel§fade_irrelevant: Drawable§lane_highlights: ((Option<LaneID>, Option<LaneID>), Drawable)§draw_drop_position: Drawable§num_edit_cmds_originally: usize§redo_stack: Vec<EditCmd>§orig_road_state: EditRoad

Implementations§

source§

impl RoadEditor

source

pub fn new_state( ctx: &mut EventCtx<'_>, app: &mut App, - l: LaneID + l: LaneID ) -> Box<dyn State<App>>

Always starts focused on a certain lane.

source

pub fn new_state_without_lane( ctx: &mut EventCtx<'_>, app: &mut App, - r: RoadID + r: RoadID ) -> Box<dyn State<App>>

source

fn create( ctx: &mut EventCtx<'_>, app: &mut App, - r: RoadID, - selected_lane: Option<LaneID> -) -> Box<dyn State<App>>

source

fn lane_for_idx(&self, app: &App, idx: usize) -> LaneID

source

fn modify_current_lane<F: Fn(&mut EditRoad, usize)>( + r: RoadID, + selected_lane: Option<LaneID> +) -> Box<dyn State<App>>

source

fn lane_for_idx(&self, app: &App, idx: usize) -> LaneID

source

fn modify_current_lane<F: Fn(&mut EditRoad, usize)>( &mut self, ctx: &mut EventCtx<'_>, app: &mut App, select_new_lane_offset: Option<isize>, f: F -) -> Transition<App>

source

fn recalc_all_panels(&mut self, ctx: &mut EventCtx<'_>, app: &App)

source

fn recalc_lane_highlights(&mut self, ctx: &mut EventCtx<'_>, app: &App)

source

fn compress_edits(&self, app: &App) -> Option<MapEdits>

source

fn recalc_hovering(&mut self, ctx: &EventCtx<'_>, app: &mut App)

Trait Implementations§

source§

impl State<App> for RoadEditor

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw(&self, g: &mut GfxCtx<'_>, _: &App)

Draw
§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving +) -> Transition<App>

source

fn recalc_all_panels(&mut self, ctx: &mut EventCtx<'_>, app: &App)

source

fn recalc_lane_highlights(&mut self, ctx: &mut EventCtx<'_>, app: &App)

source

fn compress_edits(&self, app: &App) -> Option<MapEdits>

source

fn recalc_hovering(&mut self, ctx: &EventCtx<'_>, app: &mut App)

Trait Implementations§

source§

impl State<App> for RoadEditor

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw(&self, g: &mut GfxCtx<'_>, _: &App)

Draw
§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving the State-specific state appropriately.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere diff --git a/rustdoc/game/edit/routes/struct.RouteEditor.html b/rustdoc/game/edit/routes/struct.RouteEditor.html index 32508aff6d..4038e6501d 100644 --- a/rustdoc/game/edit/routes/struct.RouteEditor.html +++ b/rustdoc/game/edit/routes/struct.RouteEditor.html @@ -1,10 +1,10 @@ RouteEditor in game::edit::routes - Rust

Struct game::edit::routes::RouteEditor

source ·
pub struct RouteEditor {
     panel: Panel,
-    route: TransitRouteID,
-}

Fields§

§panel: Panel§route: TransitRouteID

Implementations§

source§

impl RouteEditor

source

pub fn new_state( + route: TransitRouteID, +}

Fields§

§panel: Panel§route: TransitRouteID

Implementations§

source§

impl RouteEditor

source

pub fn new_state( ctx: &mut EventCtx<'_>, app: &mut App, - id: TransitRouteID + id: TransitRouteID ) -> Box<dyn State<App>>

Trait Implementations§

source§

impl State<App> for RouteEditor

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw(&self, g: &mut GfxCtx<'_>, _: &App)

Draw
§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving the State-specific state appropriately.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/rustdoc/game/edit/stop_signs/struct.StopSignEditor.html b/rustdoc/game/edit/stop_signs/struct.StopSignEditor.html index 8747638198..6b50136d47 100644 --- a/rustdoc/game/edit/stop_signs/struct.StopSignEditor.html +++ b/rustdoc/game/edit/stop_signs/struct.StopSignEditor.html @@ -1,12 +1,12 @@ StopSignEditor in game::edit::stop_signs - Rust
pub struct StopSignEditor {
-    id: IntersectionID,
+    id: IntersectionID,
     mode: GameplayMode,
-    geom: HashMap<RoadID, (Polygon, Polygon)>,
-    selected_sign: Option<RoadID>,
-}

Fields§

§id: IntersectionID§mode: GameplayMode§geom: HashMap<RoadID, (Polygon, Polygon)>§selected_sign: Option<RoadID>

Implementations§

source§

impl StopSignEditor

source

pub fn new_state( + geom: HashMap<RoadID, (Polygon, Polygon)>, + selected_sign: Option<RoadID>, +}

Fields§

§id: IntersectionID§mode: GameplayMode§geom: HashMap<RoadID, (Polygon, Polygon)>§selected_sign: Option<RoadID>

Implementations§

source§

impl StopSignEditor

source

pub fn new_state( ctx: &mut EventCtx<'_>, app: &mut App, - id: IntersectionID, + id: IntersectionID, mode: GameplayMode ) -> Box<dyn State<App>>

Trait Implementations§

source§

impl SimpleState<App> for StopSignEditor

source§

fn on_click( &mut self, diff --git a/rustdoc/game/edit/struct.EditMode.html b/rustdoc/game/edit/struct.EditMode.html index 3285a3d045..005b57d93b 100644 --- a/rustdoc/game/edit/struct.EditMode.html +++ b/rustdoc/game/edit/struct.EditMode.html @@ -2,12 +2,12 @@ tool_panel: Panel, top_center: Panel, changelist: Panel, - orig_edits: MapEdits, + orig_edits: MapEdits, orig_dirty: bool, mode: GameplayMode, map_edit_key: usize, draw: ToggleZoomed, -}

Fields§

§tool_panel: Panel§top_center: Panel§changelist: Panel§orig_edits: MapEdits§orig_dirty: bool§mode: GameplayMode§map_edit_key: usize§draw: ToggleZoomed

Implementations§

source§

impl EditMode

source

pub fn new_state( +}

Fields§

§tool_panel: Panel§top_center: Panel§changelist: Panel§orig_edits: MapEdits§orig_dirty: bool§mode: GameplayMode§map_edit_key: usize§draw: ToggleZoomed

Implementations§

source§

impl EditMode

source

pub fn new_state( ctx: &mut EventCtx<'_>, app: &mut App, mode: GameplayMode diff --git a/rustdoc/game/edit/traffic_signals/edits/fn.edit_entire_signal.html b/rustdoc/game/edit/traffic_signals/edits/fn.edit_entire_signal.html index 32bc75675e..ef23960f72 100644 --- a/rustdoc/game/edit/traffic_signals/edits/fn.edit_entire_signal.html +++ b/rustdoc/game/edit/traffic_signals/edits/fn.edit_entire_signal.html @@ -1,7 +1,7 @@ edit_entire_signal in game::edit::traffic_signals::edits - Rust
pub fn edit_entire_signal(
     ctx: &mut EventCtx<'_>,
     app: &App,
-    i: IntersectionID,
+    i: IntersectionID,
     mode: GameplayMode,
     original: BundleEdits
 ) -> Box<dyn State<App>>
\ No newline at end of file diff --git a/rustdoc/game/edit/traffic_signals/edits/struct.ChangeDuration.html b/rustdoc/game/edit/traffic_signals/edits/struct.ChangeDuration.html index df9ca361ec..88ba2df1e6 100644 --- a/rustdoc/game/edit/traffic_signals/edits/struct.ChangeDuration.html +++ b/rustdoc/game/edit/traffic_signals/edits/struct.ChangeDuration.html @@ -3,7 +3,7 @@ }

Fields§

§idx: usize

Implementations§

source§

impl ChangeDuration

source

pub fn new_state( ctx: &mut EventCtx<'_>, app: &App, - signal: &ControlTrafficSignal, + signal: &ControlTrafficSignal, idx: usize ) -> Box<dyn State<App>>

Trait Implementations§

source§

impl SimpleState<App> for ChangeDuration

source§

fn on_click( &mut self, diff --git a/rustdoc/game/edit/traffic_signals/fn.check_for_missing_turns.html b/rustdoc/game/edit/traffic_signals/fn.check_for_missing_turns.html index 0feefd2ae0..188be9273b 100644 --- a/rustdoc/game/edit/traffic_signals/fn.check_for_missing_turns.html +++ b/rustdoc/game/edit/traffic_signals/fn.check_for_missing_turns.html @@ -1,4 +1,4 @@ check_for_missing_turns in game::edit::traffic_signals - Rust
fn check_for_missing_turns(
     app: &App,
-    members: &BTreeSet<IntersectionID>
+    members: &BTreeSet<IntersectionID>
 ) -> Option<BundleEdits>
\ No newline at end of file diff --git a/rustdoc/game/edit/traffic_signals/fn.draw_multiple_signals.html b/rustdoc/game/edit/traffic_signals/fn.draw_multiple_signals.html index f01691b4aa..04d4b13756 100644 --- a/rustdoc/game/edit/traffic_signals/fn.draw_multiple_signals.html +++ b/rustdoc/game/edit/traffic_signals/fn.draw_multiple_signals.html @@ -1,7 +1,7 @@ draw_multiple_signals in game::edit::traffic_signals - Rust
fn draw_multiple_signals(
     ctx: &mut EventCtx<'_>,
     app: &App,
-    members: &BTreeSet<IntersectionID>,
+    members: &BTreeSet<IntersectionID>,
     idx: usize,
     translations: &[(f64, f64)]
 ) -> GeomBatch
\ No newline at end of file diff --git a/rustdoc/game/edit/traffic_signals/fn.fade_irrelevant.html b/rustdoc/game/edit/traffic_signals/fn.fade_irrelevant.html index 9fdf6de7c6..b899b64d80 100644 --- a/rustdoc/game/edit/traffic_signals/fn.fade_irrelevant.html +++ b/rustdoc/game/edit/traffic_signals/fn.fade_irrelevant.html @@ -1,4 +1,4 @@ fade_irrelevant in game::edit::traffic_signals - Rust
pub fn fade_irrelevant(
     app: &App,
-    members: &BTreeSet<IntersectionID>
+    members: &BTreeSet<IntersectionID>
 ) -> GeomBatch
\ No newline at end of file diff --git a/rustdoc/game/edit/traffic_signals/fn.make_side_panel.html b/rustdoc/game/edit/traffic_signals/fn.make_side_panel.html index 0bcffbb803..739f658dfb 100644 --- a/rustdoc/game/edit/traffic_signals/fn.make_side_panel.html +++ b/rustdoc/game/edit/traffic_signals/fn.make_side_panel.html @@ -1,6 +1,6 @@ make_side_panel in game::edit::traffic_signals - Rust
fn make_side_panel(
     ctx: &mut EventCtx<'_>,
     app: &App,
-    members: &BTreeSet<IntersectionID>,
+    members: &BTreeSet<IntersectionID>,
     selected: usize
 ) -> Panel
\ No newline at end of file diff --git a/rustdoc/game/edit/traffic_signals/gmns/fn.add_crosswalks.html b/rustdoc/game/edit/traffic_signals/gmns/fn.add_crosswalks.html index 29baa52aeb..dff276f3f8 100644 --- a/rustdoc/game/edit/traffic_signals/gmns/fn.add_crosswalks.html +++ b/rustdoc/game/edit/traffic_signals/gmns/fn.add_crosswalks.html @@ -1 +1 @@ -add_crosswalks in game::edit::traffic_signals::gmns - Rust
fn add_crosswalks(signal: &mut ControlTrafficSignal, map: &Map)
\ No newline at end of file +add_crosswalks in game::edit::traffic_signals::gmns - Rust
fn add_crosswalks(signal: &mut ControlTrafficSignal, map: &Map)
\ No newline at end of file diff --git a/rustdoc/game/edit/traffic_signals/gmns/fn.import.html b/rustdoc/game/edit/traffic_signals/gmns/fn.import.html index 06ad25e728..bf8c77a6eb 100644 --- a/rustdoc/game/edit/traffic_signals/gmns/fn.import.html +++ b/rustdoc/game/edit/traffic_signals/gmns/fn.import.html @@ -1,8 +1,8 @@ import in game::edit::traffic_signals::gmns - Rust

Function game::edit::traffic_signals::gmns::import

source ·
pub fn import(
-    map: &Map,
-    i: IntersectionID,
+    map: &Map,
+    i: IntersectionID,
     bytes: &Vec<u8>
-) -> Result<ControlTrafficSignal>
Expand description

This imports timing.csv from https://github.com/asu-trans-ai-lab/Vol2Timing. It operates in a +) -> Result<ControlTrafficSignal>

Expand description

This imports timing.csv from https://github.com/asu-trans-ai-lab/Vol2Timing. It operates in a best-effort / permissive mode, skipping over mismatched movements and other problems and should still be considered experimental.

\ No newline at end of file diff --git a/rustdoc/game/edit/traffic_signals/gmns/struct.Snapper.html b/rustdoc/game/edit/traffic_signals/gmns/struct.Snapper.html index 39c948ea19..dbd3cab3e7 100644 --- a/rustdoc/game/edit/traffic_signals/gmns/struct.Snapper.html +++ b/rustdoc/game/edit/traffic_signals/gmns/struct.Snapper.html @@ -1,18 +1,18 @@ Snapper in game::edit::traffic_signals::gmns - Rust
struct Snapper {
-    roads_incoming: HashMap<DirectedRoadID, Pt2D>,
-    roads_outgoing: HashMap<DirectedRoadID, Pt2D>,
-    movements: BTreeMap<MovementID, Movement>,
+    roads_incoming: HashMap<DirectedRoadID, Pt2D>,
+    roads_outgoing: HashMap<DirectedRoadID, Pt2D>,
+    movements: BTreeMap<MovementID, Movement>,
 }
Expand description

Snaps a line to a vehicle movement across an intersection. It uses movement endpoints and a hint about turn type to match.

OSM IDs aren’t used to snap, because GMNS and A/B Street may disagree about where a road segment begins/ends. This could happen from OSM IDs changing over time or from different rules about importing things like service roads.

-

Fields§

§roads_incoming: HashMap<DirectedRoadID, Pt2D>§roads_outgoing: HashMap<DirectedRoadID, Pt2D>§movements: BTreeMap<MovementID, Movement>

Implementations§

source§

impl Snapper

Fields§

§roads_incoming: HashMap<DirectedRoadID, Pt2D>§roads_outgoing: HashMap<DirectedRoadID, Pt2D>§movements: BTreeMap<MovementID, Movement>

Implementations§

source§

impl Snapper

source

fn new(map: &Map, i: IntersectionID) -> Result<Snapper>

source

fn get_mvmnt( &self, pair: (Pt2D, Pt2D), code: &str, - map: &Map -) -> Result<MovementID>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + map: &Map +) -> Result<MovementID>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere diff --git a/rustdoc/game/edit/traffic_signals/offsets/struct.ShowAbsolute.html b/rustdoc/game/edit/traffic_signals/offsets/struct.ShowAbsolute.html index 003d6039b9..61891e32b2 100644 --- a/rustdoc/game/edit/traffic_signals/offsets/struct.ShowAbsolute.html +++ b/rustdoc/game/edit/traffic_signals/offsets/struct.ShowAbsolute.html @@ -1,10 +1,10 @@ ShowAbsolute in game::edit::traffic_signals::offsets - Rust
pub struct ShowAbsolute {
-    members: BTreeSet<IntersectionID>,
+    members: BTreeSet<IntersectionID>,
     labels: Drawable,
-}

Fields§

§members: BTreeSet<IntersectionID>§labels: Drawable

Implementations§

source§

impl ShowAbsolute

source

pub fn new_state( +}

Fields§

§members: BTreeSet<IntersectionID>§labels: Drawable

Implementations§

source§

impl ShowAbsolute

source

pub fn new_state( ctx: &mut EventCtx<'_>, app: &App, - members: BTreeSet<IntersectionID> + members: BTreeSet<IntersectionID> ) -> Box<dyn State<App>>

Trait Implementations§

source§

impl SimpleState<App> for ShowAbsolute

source§

fn on_click( &mut self, _: &mut EventCtx<'_>, diff --git a/rustdoc/game/edit/traffic_signals/offsets/struct.ShowRelative.html b/rustdoc/game/edit/traffic_signals/offsets/struct.ShowRelative.html index 377def2207..027901c002 100644 --- a/rustdoc/game/edit/traffic_signals/offsets/struct.ShowRelative.html +++ b/rustdoc/game/edit/traffic_signals/offsets/struct.ShowRelative.html @@ -1,12 +1,12 @@ ShowRelative in game::edit::traffic_signals::offsets - Rust
struct ShowRelative {
-    base: IntersectionID,
-    members: BTreeSet<IntersectionID>,
+    base: IntersectionID,
+    members: BTreeSet<IntersectionID>,
     labels: Drawable,
-}

Fields§

§base: IntersectionID§members: BTreeSet<IntersectionID>§labels: Drawable

Implementations§

source§

impl ShowRelative

source

pub fn new_state( +}

Fields§

§base: IntersectionID§members: BTreeSet<IntersectionID>§labels: Drawable

Implementations§

source§

impl ShowRelative

source

pub fn new_state( ctx: &mut EventCtx<'_>, app: &App, - base: IntersectionID, - members: BTreeSet<IntersectionID> + base: IntersectionID, + members: BTreeSet<IntersectionID> ) -> Box<dyn State<App>>

Trait Implementations§

source§

impl SimpleState<App> for ShowRelative

source§

fn on_click( &mut self, ctx: &mut EventCtx<'_>, diff --git a/rustdoc/game/edit/traffic_signals/offsets/struct.TuneRelative.html b/rustdoc/game/edit/traffic_signals/offsets/struct.TuneRelative.html index 3373d88433..6657fc1858 100644 --- a/rustdoc/game/edit/traffic_signals/offsets/struct.TuneRelative.html +++ b/rustdoc/game/edit/traffic_signals/offsets/struct.TuneRelative.html @@ -1,14 +1,14 @@ TuneRelative in game::edit::traffic_signals::offsets - Rust
struct TuneRelative {
-    i1: IntersectionID,
-    i2: IntersectionID,
-    members: BTreeSet<IntersectionID>,
+    i1: IntersectionID,
+    i2: IntersectionID,
+    members: BTreeSet<IntersectionID>,
     labels: Drawable,
-}

Fields§

§i1: IntersectionID§i2: IntersectionID§members: BTreeSet<IntersectionID>§labels: Drawable

Implementations§

source§

impl TuneRelative

source

pub fn new_state( +}

Fields§

§i1: IntersectionID§i2: IntersectionID§members: BTreeSet<IntersectionID>§labels: Drawable

Implementations§

source§

impl TuneRelative

source

pub fn new_state( ctx: &mut EventCtx<'_>, app: &App, - i1: IntersectionID, - i2: IntersectionID, - members: BTreeSet<IntersectionID> + i1: IntersectionID, + i2: IntersectionID, + members: BTreeSet<IntersectionID> ) -> Box<dyn State<App>>

Trait Implementations§

source§

impl SimpleState<App> for TuneRelative

source§

fn on_click( &mut self, ctx: &mut EventCtx<'_>, diff --git a/rustdoc/game/edit/traffic_signals/picker/struct.SignalPicker.html b/rustdoc/game/edit/traffic_signals/picker/struct.SignalPicker.html index a4ae038b83..53549d6fe7 100644 --- a/rustdoc/game/edit/traffic_signals/picker/struct.SignalPicker.html +++ b/rustdoc/game/edit/traffic_signals/picker/struct.SignalPicker.html @@ -1,10 +1,10 @@ SignalPicker in game::edit::traffic_signals::picker - Rust
pub struct SignalPicker {
-    members: BTreeSet<IntersectionID>,
+    members: BTreeSet<IntersectionID>,
     panel: Panel,
     mode: GameplayMode,
-}

Fields§

§members: BTreeSet<IntersectionID>§panel: Panel§mode: GameplayMode

Implementations§

source§

impl SignalPicker

source

pub fn new_state( +}

Fields§

§members: BTreeSet<IntersectionID>§panel: Panel§mode: GameplayMode

Implementations§

source§

impl SignalPicker

source

pub fn new_state( ctx: &mut EventCtx<'_>, - members: BTreeSet<IntersectionID>, + members: BTreeSet<IntersectionID>, mode: GameplayMode ) -> Box<dyn State<App>>

Trait Implementations§

source§

impl State<App> for SignalPicker

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw(&self, g: &mut GfxCtx<'_>, app: &App)

Draw
§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving the State-specific state appropriately.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere diff --git a/rustdoc/game/edit/traffic_signals/preview/fn.make_previewer.html b/rustdoc/game/edit/traffic_signals/preview/fn.make_previewer.html index 01a3f27b5e..fb34ac5f40 100644 --- a/rustdoc/game/edit/traffic_signals/preview/fn.make_previewer.html +++ b/rustdoc/game/edit/traffic_signals/preview/fn.make_previewer.html @@ -1,6 +1,6 @@ make_previewer in game::edit::traffic_signals::preview - Rust
pub fn make_previewer(
     ctx: &mut EventCtx<'_>,
     app: &App,
-    members: BTreeSet<IntersectionID>,
+    members: BTreeSet<IntersectionID>,
     stage: usize
 ) -> Box<dyn State<App>>
\ No newline at end of file diff --git a/rustdoc/game/edit/traffic_signals/struct.BundleEdits.html b/rustdoc/game/edit/traffic_signals/struct.BundleEdits.html index 84c3c8fb69..762c58c467 100644 --- a/rustdoc/game/edit/traffic_signals/struct.BundleEdits.html +++ b/rustdoc/game/edit/traffic_signals/struct.BundleEdits.html @@ -1,6 +1,6 @@ BundleEdits in game::edit::traffic_signals - Rust
pub struct BundleEdits {
-    signals: Vec<ControlTrafficSignal>,
-}

Fields§

§signals: Vec<ControlTrafficSignal>

Implementations§

source§

impl BundleEdits

source

fn apply(&self, app: &mut App)

source

fn commit(self, ctx: &mut EventCtx<'_>, app: &mut App)

source

fn get_current(app: &App, members: &BTreeSet<IntersectionID>) -> BundleEdits

source

fn synchronize(app: &App, members: &BTreeSet<IntersectionID>) -> BundleEdits

Trait Implementations§

source§

impl Clone for BundleEdits

source§

fn clone(&self) -> BundleEdits

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl PartialEq for BundleEdits

source§

fn eq(&self, other: &BundleEdits) -> bool

This method tests for self and other values to be equal, and is used + signals: Vec<ControlTrafficSignal>, +}

Fields§

§signals: Vec<ControlTrafficSignal>

Implementations§

source§

impl BundleEdits

source

fn apply(&self, app: &mut App)

source

fn commit(self, ctx: &mut EventCtx<'_>, app: &mut App)

source

fn get_current(app: &App, members: &BTreeSet<IntersectionID>) -> BundleEdits

source

fn synchronize(app: &App, members: &BTreeSet<IntersectionID>) -> BundleEdits

Trait Implementations§

source§

impl Clone for BundleEdits

source§

fn clone(&self) -> BundleEdits

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl PartialEq for BundleEdits

source§

fn eq(&self, other: &BundleEdits) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for BundleEdits

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/rustdoc/game/edit/traffic_signals/struct.TrafficSignalEditor.html b/rustdoc/game/edit/traffic_signals/struct.TrafficSignalEditor.html index 01242e86c8..5eb61c26e5 100644 --- a/rustdoc/game/edit/traffic_signals/struct.TrafficSignalEditor.html +++ b/rustdoc/game/edit/traffic_signals/struct.TrafficSignalEditor.html @@ -2,10 +2,10 @@ side_panel: Panel, top_panel: Panel, mode: GameplayMode, - members: BTreeSet<IntersectionID>, + members: BTreeSet<IntersectionID>, current_stage: usize, movements: Vec<DrawMovement>, - movement_selected: Option<(MovementID, Option<TurnPriority>)>, + movement_selected: Option<(MovementID, Option<TurnPriority>)>, draw_current: Drawable, tooltip: Option<Text>, command_stack: Vec<BundleEdits>, @@ -13,12 +13,12 @@ original: BundleEdits, warn_changed: bool, fade_irrelevant: Drawable, -

}

Fields§

§side_panel: Panel§top_panel: Panel§mode: GameplayMode§members: BTreeSet<IntersectionID>§current_stage: usize§movements: Vec<DrawMovement>§movement_selected: Option<(MovementID, Option<TurnPriority>)>§draw_current: Drawable§tooltip: Option<Text>§command_stack: Vec<BundleEdits>§redo_stack: Vec<BundleEdits>§original: BundleEdits§warn_changed: bool§fade_irrelevant: Drawable

Implementations§

source§

impl TrafficSignalEditor

source

pub fn new_state( +

}

Fields§

§side_panel: Panel§top_panel: Panel§mode: GameplayMode§members: BTreeSet<IntersectionID>§current_stage: usize§movements: Vec<DrawMovement>§movement_selected: Option<(MovementID, Option<TurnPriority>)>§draw_current: Drawable§tooltip: Option<Text>§command_stack: Vec<BundleEdits>§redo_stack: Vec<BundleEdits>§original: BundleEdits§warn_changed: bool§fade_irrelevant: Drawable

Implementations§

source§

impl TrafficSignalEditor

source

pub fn new_state( ctx: &mut EventCtx<'_>, app: &mut App, - members: BTreeSet<IntersectionID>, + members: BTreeSet<IntersectionID>, mode: GameplayMode -) -> Box<dyn State<App>>

source

fn change_stage(&mut self, ctx: &mut EventCtx<'_>, app: &App, idx: usize)

source

fn add_new_edit<F: Fn(&mut ControlTrafficSignal)>( +) -> Box<dyn State<App>>

source

fn change_stage(&mut self, ctx: &mut EventCtx<'_>, app: &App, idx: usize)

source

fn add_new_edit<F: Fn(&mut ControlTrafficSignal)>( &mut self, ctx: &mut EventCtx<'_>, app: &mut App, diff --git a/rustdoc/game/edit/validate/fn.check_blackholes.html b/rustdoc/game/edit/validate/fn.check_blackholes.html index 4244294151..86330497df 100644 --- a/rustdoc/game/edit/validate/fn.check_blackholes.html +++ b/rustdoc/game/edit/validate/fn.check_blackholes.html @@ -1,5 +1,5 @@ check_blackholes in game::edit::validate - Rust
pub fn check_blackholes(
     ctx: &mut EventCtx<'_>,
     app: &mut App,
-    cmd: EditCmd
+    cmd: EditCmd
 ) -> Option<Box<dyn State<App>>>
\ No newline at end of file diff --git a/rustdoc/game/edit/validate/fn.check_sidewalk_connectivity.html b/rustdoc/game/edit/validate/fn.check_sidewalk_connectivity.html index 86b6511fc6..6ab6e95002 100644 --- a/rustdoc/game/edit/validate/fn.check_sidewalk_connectivity.html +++ b/rustdoc/game/edit/validate/fn.check_sidewalk_connectivity.html @@ -1,5 +1,5 @@ check_sidewalk_connectivity in game::edit::validate - Rust
pub fn check_sidewalk_connectivity(
     ctx: &mut EventCtx<'_>,
     app: &mut App,
-    cmd: EditCmd
+    cmd: EditCmd
 ) -> Option<Box<dyn State<App>>>
\ No newline at end of file diff --git a/rustdoc/game/edit/validate/fn.fix_sidewalk_direction.html b/rustdoc/game/edit/validate/fn.fix_sidewalk_direction.html index dd56c0aee3..fad3f4afbd 100644 --- a/rustdoc/game/edit/validate/fn.fix_sidewalk_direction.html +++ b/rustdoc/game/edit/validate/fn.fix_sidewalk_direction.html @@ -1,3 +1,3 @@ -fix_sidewalk_direction in game::edit::validate - Rust
pub fn fix_sidewalk_direction(map: &Map) -> Vec<EditCmd>
Expand description

Looks at all changed roads and makes sure sidewalk directions are correct – this is easy for +fix_sidewalk_direction in game::edit::validate - Rust

pub fn fix_sidewalk_direction(map: &Map) -> Vec<EditCmd>
Expand description

Looks at all changed roads and makes sure sidewalk directions are correct – this is easy for the user to mix up. Returns a list of new fixes to apply on top of the original edits.

\ No newline at end of file diff --git a/rustdoc/game/edit/zones/fn.draw_zone.html b/rustdoc/game/edit/zones/fn.draw_zone.html index acc1157c61..c03c16873b 100644 --- a/rustdoc/game/edit/zones/fn.draw_zone.html +++ b/rustdoc/game/edit/zones/fn.draw_zone.html @@ -1,5 +1,5 @@ draw_zone in game::edit::zones - Rust

Function game::edit::zones::draw_zone

source ·
fn draw_zone(
     ctx: &mut EventCtx<'_>,
     app: &App,
-    members: &BTreeSet<RoadID>
+    members: &BTreeSet<RoadID>
 ) -> (ToggleZoomed, Widget)
\ No newline at end of file diff --git a/rustdoc/game/edit/zones/struct.ZoneEditor.html b/rustdoc/game/edit/zones/struct.ZoneEditor.html index c97640e737..e23261d6ba 100644 --- a/rustdoc/game/edit/zones/struct.ZoneEditor.html +++ b/rustdoc/game/edit/zones/struct.ZoneEditor.html @@ -3,11 +3,11 @@ selector: RoadSelector, allow_through_traffic: BTreeSet<TripMode>, draw: ToggleZoomed, - orig_members: BTreeSet<RoadID>, -}

Fields§

§panel: Panel§selector: RoadSelector§allow_through_traffic: BTreeSet<TripMode>§draw: ToggleZoomed§orig_members: BTreeSet<RoadID>

Implementations§

source§

impl ZoneEditor

source

pub fn new_state( + orig_members: BTreeSet<RoadID>, +}

Fields§

§panel: Panel§selector: RoadSelector§allow_through_traffic: BTreeSet<TripMode>§draw: ToggleZoomed§orig_members: BTreeSet<RoadID>

Implementations§

source§

impl ZoneEditor

source

pub fn new_state( ctx: &mut EventCtx<'_>, app: &mut App, - start: RoadID + start: RoadID ) -> Box<dyn State<App>>

Trait Implementations§

source§

impl State<App> for ZoneEditor

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw(&self, g: &mut GfxCtx<'_>, app: &App)

Draw
§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving the State-specific state appropriately.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/rustdoc/game/fn.finish_app_setup.html b/rustdoc/game/fn.finish_app_setup.html index 2bf029f5af..e3b16fb3d3 100644 --- a/rustdoc/game/fn.finish_app_setup.html +++ b/rustdoc/game/fn.finish_app_setup.html @@ -3,6 +3,6 @@ app: &mut App, title: bool, savestate: Option<Sim>, - edits: Option<MapEdits>, + edits: Option<MapEdits>, setup: Setup ) -> Vec<Box<dyn State<App>>>

\ No newline at end of file diff --git a/rustdoc/game/id/enum.ID.html b/rustdoc/game/id/enum.ID.html index d5d89bff66..050695bfc4 100644 --- a/rustdoc/game/id/enum.ID.html +++ b/rustdoc/game/id/enum.ID.html @@ -1,15 +1,15 @@ ID in game::id - Rust

Enum game::id::ID

source ·
pub enum ID {
-    Road(RoadID),
-    Lane(LaneID),
-    Intersection(IntersectionID),
-    Building(BuildingID),
-    ParkingLot(ParkingLotID),
+    Road(RoadID),
+    Lane(LaneID),
+    Intersection(IntersectionID),
+    Building(BuildingID),
+    ParkingLot(ParkingLotID),
     Car(CarID),
     Pedestrian(PedestrianID),
     PedCrowd(Vec<PedestrianID>),
-    TransitStop(TransitStopID),
-    Area(AreaID),
-}

Variants§

§

Road(RoadID)

§

Lane(LaneID)

§

Intersection(IntersectionID)

§

Building(BuildingID)

§

ParkingLot(ParkingLotID)

§

Car(CarID)

§

Pedestrian(PedestrianID)

§

PedCrowd(Vec<PedestrianID>)

§

TransitStop(TransitStopID)

§

Area(AreaID)

Implementations§

source§

impl ID

source

pub fn from_agent(id: AgentID) -> ID

source

pub fn agent_id(&self) -> Option<AgentID>

source

pub fn as_intersection(&self) -> IntersectionID

source

pub fn to_map_gui(self) -> ID

Trait Implementations§

source§

impl Clone for ID

source§

fn clone(&self) -> ID

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ID

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<ID> for ID

source§

fn from(id: ID) -> Self

Converts to this type from the input type.
source§

impl Hash for ID

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where + TransitStop(TransitStopID), + Area(AreaID), +}

Variants§

§

Road(RoadID)

§

Lane(LaneID)

§

Intersection(IntersectionID)

§

Building(BuildingID)

§

ParkingLot(ParkingLotID)

§

Car(CarID)

§

Pedestrian(PedestrianID)

§

PedCrowd(Vec<PedestrianID>)

§

TransitStop(TransitStopID)

§

Area(AreaID)

Implementations§

source§

impl ID

source

pub fn from_agent(id: AgentID) -> ID

source

pub fn agent_id(&self) -> Option<AgentID>

source

pub fn as_intersection(&self) -> IntersectionID

source

pub fn to_map_gui(self) -> ID

Trait Implementations§

source§

impl Clone for ID

source§

fn clone(&self) -> ID

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ID

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<ID> for ID

source§

fn from(id: ID) -> Self

Converts to this type from the input type.
source§

impl Hash for ID

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for ID

source§

fn cmp(&self, other: &ID) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere diff --git a/rustdoc/game/info/building/fn.draw_occupants.html b/rustdoc/game/info/building/fn.draw_occupants.html index 4e33ebf358..56a427cedb 100644 --- a/rustdoc/game/info/building/fn.draw_occupants.html +++ b/rustdoc/game/info/building/fn.draw_occupants.html @@ -1,6 +1,6 @@ draw_occupants in game::info::building - Rust

Function game::info::building::draw_occupants

source ·
pub fn draw_occupants(
     details: &mut Details,
     app: &App,
-    id: BuildingID,
+    id: BuildingID,
     focus: Option<PersonID>
 )
\ No newline at end of file diff --git a/rustdoc/game/info/building/fn.header.html b/rustdoc/game/info/building/fn.header.html index d85c5b28f1..dff1133056 100644 --- a/rustdoc/game/info/building/fn.header.html +++ b/rustdoc/game/info/building/fn.header.html @@ -2,6 +2,6 @@ ctx: &EventCtx<'_>, app: &App, details: &mut Details, - id: BuildingID, + id: BuildingID, tab: Tab ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/building/fn.info.html b/rustdoc/game/info/building/fn.info.html index 547b366d9b..ae14089041 100644 --- a/rustdoc/game/info/building/fn.info.html +++ b/rustdoc/game/info/building/fn.info.html @@ -2,5 +2,5 @@ ctx: &mut EventCtx<'_>, app: &App, details: &mut Details, - id: BuildingID + id: BuildingID ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/building/fn.info_body.html b/rustdoc/game/info/building/fn.info_body.html index 1b49700839..f504b56502 100644 --- a/rustdoc/game/info/building/fn.info_body.html +++ b/rustdoc/game/info/building/fn.info_body.html @@ -2,5 +2,5 @@ ctx: &mut EventCtx<'_>, app: &App, details: &mut Details, - id: BuildingID + id: BuildingID ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/building/fn.people.html b/rustdoc/game/info/building/fn.people.html index 90db3cda8e..77e4bc8219 100644 --- a/rustdoc/game/info/building/fn.people.html +++ b/rustdoc/game/info/building/fn.people.html @@ -2,5 +2,5 @@ ctx: &mut EventCtx<'_>, app: &App, details: &mut Details, - id: BuildingID + id: BuildingID ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/building/fn.people_body.html b/rustdoc/game/info/building/fn.people_body.html index 2d17c92d35..c3e4930c34 100644 --- a/rustdoc/game/info/building/fn.people_body.html +++ b/rustdoc/game/info/building/fn.people_body.html @@ -2,5 +2,5 @@ ctx: &mut EventCtx<'_>, app: &App, details: &mut Details, - id: BuildingID + id: BuildingID ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/debug/fn.area.html b/rustdoc/game/info/debug/fn.area.html index 968900e2b8..43496160a3 100644 --- a/rustdoc/game/info/debug/fn.area.html +++ b/rustdoc/game/info/debug/fn.area.html @@ -2,5 +2,5 @@ ctx: &EventCtx<'_>, app: &App, _: &mut Details, - id: AreaID + id: AreaID ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/debug/fn.area_body.html b/rustdoc/game/info/debug/fn.area_body.html index 58069b3ef1..d3c73b8925 100644 --- a/rustdoc/game/info/debug/fn.area_body.html +++ b/rustdoc/game/info/debug/fn.area_body.html @@ -1 +1 @@ -area_body in game::info::debug - Rust

Function game::info::debug::area_body

source ·
fn area_body(ctx: &EventCtx<'_>, app: &App, id: AreaID) -> Widget
\ No newline at end of file +area_body in game::info::debug - Rust

Function game::info::debug::area_body

source ·
fn area_body(ctx: &EventCtx<'_>, app: &App, id: AreaID) -> Widget
\ No newline at end of file diff --git a/rustdoc/game/info/enum.Tab.html b/rustdoc/game/info/enum.Tab.html index fc1281ac76..16ad4c6819 100644 --- a/rustdoc/game/info/enum.Tab.html +++ b/rustdoc/game/info/enum.Tab.html @@ -3,26 +3,26 @@ PersonBio(PersonID), PersonSchedule(PersonID), TransitVehicleStatus(CarID), - TransitStop(TransitStopID), - TransitRoute(TransitRouteID), + TransitStop(TransitStopID), + TransitRoute(TransitRouteID), ParkedCar(CarID), - BldgInfo(BuildingID), - BldgPeople(BuildingID), - ParkingLot(ParkingLotID), + BldgInfo(BuildingID), + BldgPeople(BuildingID), + ParkingLot(ParkingLotID), Crowd(Vec<PedestrianID>), - Area(AreaID), - IntersectionInfo(IntersectionID), - IntersectionTraffic(IntersectionID, DataOptions), - IntersectionDelay(IntersectionID, DataOptions, bool), - IntersectionDemand(IntersectionID), - IntersectionArrivals(IntersectionID, DataOptions), - IntersectionTrafficSignal(IntersectionID), - IntersectionProblems(IntersectionID, ProblemOptions), - LaneInfo(LaneID), - LaneDebug(LaneID), - LaneTraffic(LaneID, DataOptions), - LaneProblems(LaneID, ProblemOptions), -

}

Variants§

§

PersonTrips(PersonID, BTreeMap<TripID, OpenTrip>)

§

PersonBio(PersonID)

§

PersonSchedule(PersonID)

§

TransitVehicleStatus(CarID)

§

TransitStop(TransitStopID)

§

TransitRoute(TransitRouteID)

§

ParkedCar(CarID)

§

BldgInfo(BuildingID)

§

BldgPeople(BuildingID)

§

ParkingLot(ParkingLotID)

§

Crowd(Vec<PedestrianID>)

§

Area(AreaID)

§

IntersectionInfo(IntersectionID)

§

IntersectionTraffic(IntersectionID, DataOptions)

§

IntersectionDelay(IntersectionID, DataOptions, bool)

§

IntersectionDemand(IntersectionID)

§

IntersectionArrivals(IntersectionID, DataOptions)

§

IntersectionTrafficSignal(IntersectionID)

§

IntersectionProblems(IntersectionID, ProblemOptions)

§

LaneInfo(LaneID)

§

LaneDebug(LaneID)

§

LaneTraffic(LaneID, DataOptions)

§

LaneProblems(LaneID, ProblemOptions)

Implementations§

source§

impl Tab

source

pub fn from_id(app: &App, id: ID) -> Tab

source

fn to_id(&self, app: &App) -> Option<ID>

source

fn changed_settings(&self, c: &Panel) -> Option<Tab>

source

fn variant(&self) -> (&'static str, &'static str)

Trait Implementations§

source§

impl Clone for Tab

source§

fn clone(&self) -> Tab

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Tab

§

impl Send for Tab

§

impl Sync for Tab

§

impl Unpin for Tab

§

impl UnwindSafe for Tab

Blanket Implementations§

source§

impl<T> Any for Twhere + Area(AreaID), + IntersectionInfo(IntersectionID), + IntersectionTraffic(IntersectionID, DataOptions), + IntersectionDelay(IntersectionID, DataOptions, bool), + IntersectionDemand(IntersectionID), + IntersectionArrivals(IntersectionID, DataOptions), + IntersectionTrafficSignal(IntersectionID), + IntersectionProblems(IntersectionID, ProblemOptions), + LaneInfo(LaneID), + LaneDebug(LaneID), + LaneTraffic(LaneID, DataOptions), + LaneProblems(LaneID, ProblemOptions), +

}

Variants§

§

PersonTrips(PersonID, BTreeMap<TripID, OpenTrip>)

§

PersonBio(PersonID)

§

PersonSchedule(PersonID)

§

TransitVehicleStatus(CarID)

§

TransitStop(TransitStopID)

§

TransitRoute(TransitRouteID)

§

ParkedCar(CarID)

§

BldgInfo(BuildingID)

§

BldgPeople(BuildingID)

§

ParkingLot(ParkingLotID)

§

Crowd(Vec<PedestrianID>)

§

Area(AreaID)

§

IntersectionInfo(IntersectionID)

§

IntersectionTraffic(IntersectionID, DataOptions)

§

IntersectionDelay(IntersectionID, DataOptions, bool)

§

IntersectionDemand(IntersectionID)

§

IntersectionArrivals(IntersectionID, DataOptions)

§

IntersectionTrafficSignal(IntersectionID)

§

IntersectionProblems(IntersectionID, ProblemOptions)

§

LaneInfo(LaneID)

§

LaneDebug(LaneID)

§

LaneTraffic(LaneID, DataOptions)

§

LaneProblems(LaneID, ProblemOptions)

Implementations§

source§

impl Tab

source

pub fn from_id(app: &App, id: ID) -> Tab

source

fn to_id(&self, app: &App) -> Option<ID>

source

fn changed_settings(&self, c: &Panel) -> Option<Tab>

source

fn variant(&self) -> (&'static str, &'static str)

Trait Implementations§

source§

impl Clone for Tab

source§

fn clone(&self) -> Tab

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Tab

§

impl Send for Tab

§

impl Sync for Tab

§

impl Unpin for Tab

§

impl UnwindSafe for Tab

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere diff --git a/rustdoc/game/info/intersection/fn.arrivals.html b/rustdoc/game/info/intersection/fn.arrivals.html index 22cb15fd37..398170b266 100644 --- a/rustdoc/game/info/intersection/fn.arrivals.html +++ b/rustdoc/game/info/intersection/fn.arrivals.html @@ -2,6 +2,6 @@ ctx: &mut EventCtx<'_>, app: &App, details: &mut Details, - id: IntersectionID, + id: IntersectionID, opts: &DataOptions ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/intersection/fn.current_demand.html b/rustdoc/game/info/intersection/fn.current_demand.html index 460cbe9b5c..735ef533bf 100644 --- a/rustdoc/game/info/intersection/fn.current_demand.html +++ b/rustdoc/game/info/intersection/fn.current_demand.html @@ -2,5 +2,5 @@ ctx: &mut EventCtx<'_>, app: &App, details: &mut Details, - id: IntersectionID + id: IntersectionID ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/intersection/fn.current_demand_body.html b/rustdoc/game/info/intersection/fn.current_demand_body.html index e024cd0c37..bdafce0c37 100644 --- a/rustdoc/game/info/intersection/fn.current_demand_body.html +++ b/rustdoc/game/info/intersection/fn.current_demand_body.html @@ -1,5 +1,5 @@ current_demand_body in game::info::intersection - Rust
fn current_demand_body(
     ctx: &mut EventCtx<'_>,
     app: &App,
-    id: IntersectionID
+    id: IntersectionID
 ) -> Widget
\ No newline at end of file diff --git a/rustdoc/game/info/intersection/fn.delay.html b/rustdoc/game/info/intersection/fn.delay.html index a71c9eea98..6ecdf57f83 100644 --- a/rustdoc/game/info/intersection/fn.delay.html +++ b/rustdoc/game/info/intersection/fn.delay.html @@ -2,7 +2,7 @@ ctx: &mut EventCtx<'_>, app: &App, details: &mut Details, - id: IntersectionID, + id: IntersectionID, opts: &DataOptions, fan_chart: bool ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/intersection/fn.delay_body.html b/rustdoc/game/info/intersection/fn.delay_body.html index d1c48a0a1f..c6d3598198 100644 --- a/rustdoc/game/info/intersection/fn.delay_body.html +++ b/rustdoc/game/info/intersection/fn.delay_body.html @@ -1,7 +1,7 @@ delay_body in game::info::intersection - Rust

Function game::info::intersection::delay_body

source ·
fn delay_body(
     ctx: &mut EventCtx<'_>,
     app: &App,
-    id: IntersectionID,
+    id: IntersectionID,
     opts: &DataOptions,
     fan_chart: bool
 ) -> Widget
\ No newline at end of file diff --git a/rustdoc/game/info/intersection/fn.delay_plot.html b/rustdoc/game/info/intersection/fn.delay_plot.html index 09b8c933ab..d4939ae6b4 100644 --- a/rustdoc/game/info/intersection/fn.delay_plot.html +++ b/rustdoc/game/info/intersection/fn.delay_plot.html @@ -1,7 +1,7 @@ delay_plot in game::info::intersection - Rust

Function game::info::intersection::delay_plot

source ·
fn delay_plot(
     ctx: &EventCtx<'_>,
     app: &App,
-    i: IntersectionID,
+    i: IntersectionID,
     opts: &DataOptions,
     fan_chart: bool
 ) -> Widget
\ No newline at end of file diff --git a/rustdoc/game/info/intersection/fn.header.html b/rustdoc/game/info/intersection/fn.header.html index 2097f1a477..1894b15bdd 100644 --- a/rustdoc/game/info/intersection/fn.header.html +++ b/rustdoc/game/info/intersection/fn.header.html @@ -2,6 +2,6 @@ ctx: &EventCtx<'_>, app: &App, details: &mut Details, - id: IntersectionID, + id: IntersectionID, tab: Tab ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/intersection/fn.info.html b/rustdoc/game/info/intersection/fn.info.html index 6d21651a49..f8dc4ec485 100644 --- a/rustdoc/game/info/intersection/fn.info.html +++ b/rustdoc/game/info/intersection/fn.info.html @@ -2,5 +2,5 @@ ctx: &EventCtx<'_>, app: &App, details: &mut Details, - id: IntersectionID + id: IntersectionID ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/intersection/fn.info_body.html b/rustdoc/game/info/intersection/fn.info_body.html index 83930b582e..46fdd7e8a3 100644 --- a/rustdoc/game/info/intersection/fn.info_body.html +++ b/rustdoc/game/info/intersection/fn.info_body.html @@ -1 +1 @@ -info_body in game::info::intersection - Rust

Function game::info::intersection::info_body

source ·
fn info_body(ctx: &EventCtx<'_>, app: &App, id: IntersectionID) -> Widget
\ No newline at end of file +info_body in game::info::intersection - Rust

Function game::info::intersection::info_body

source ·
fn info_body(ctx: &EventCtx<'_>, app: &App, id: IntersectionID) -> Widget
\ No newline at end of file diff --git a/rustdoc/game/info/intersection/fn.problems.html b/rustdoc/game/info/intersection/fn.problems.html index 107659f5f7..21e35c0714 100644 --- a/rustdoc/game/info/intersection/fn.problems.html +++ b/rustdoc/game/info/intersection/fn.problems.html @@ -2,6 +2,6 @@ ctx: &mut EventCtx<'_>, app: &App, details: &mut Details, - id: IntersectionID, + id: IntersectionID, opts: &ProblemOptions ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/intersection/fn.problems_body.html b/rustdoc/game/info/intersection/fn.problems_body.html index 2327554817..f891e85c3b 100644 --- a/rustdoc/game/info/intersection/fn.problems_body.html +++ b/rustdoc/game/info/intersection/fn.problems_body.html @@ -1,6 +1,6 @@ problems_body in game::info::intersection - Rust
fn problems_body(
     ctx: &mut EventCtx<'_>,
     app: &App,
-    id: IntersectionID,
+    id: IntersectionID,
     opts: &ProblemOptions
 ) -> Widget
\ No newline at end of file diff --git a/rustdoc/game/info/intersection/fn.traffic.html b/rustdoc/game/info/intersection/fn.traffic.html index fff0d63b7a..47e0e6a39b 100644 --- a/rustdoc/game/info/intersection/fn.traffic.html +++ b/rustdoc/game/info/intersection/fn.traffic.html @@ -2,6 +2,6 @@ ctx: &mut EventCtx<'_>, app: &App, details: &mut Details, - id: IntersectionID, + id: IntersectionID, opts: &DataOptions ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/intersection/fn.traffic_body.html b/rustdoc/game/info/intersection/fn.traffic_body.html index a101011425..2f324edf77 100644 --- a/rustdoc/game/info/intersection/fn.traffic_body.html +++ b/rustdoc/game/info/intersection/fn.traffic_body.html @@ -1,6 +1,6 @@ traffic_body in game::info::intersection - Rust
fn traffic_body(
     ctx: &mut EventCtx<'_>,
     app: &App,
-    id: IntersectionID,
+    id: IntersectionID,
     opts: &DataOptions
 ) -> Widget
\ No newline at end of file diff --git a/rustdoc/game/info/intersection/fn.traffic_signal.html b/rustdoc/game/info/intersection/fn.traffic_signal.html index cd5de0c51b..cd3ba131db 100644 --- a/rustdoc/game/info/intersection/fn.traffic_signal.html +++ b/rustdoc/game/info/intersection/fn.traffic_signal.html @@ -2,5 +2,5 @@ ctx: &mut EventCtx<'_>, app: &App, details: &mut Details, - id: IntersectionID + id: IntersectionID ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/intersection/fn.traffic_signal_body.html b/rustdoc/game/info/intersection/fn.traffic_signal_body.html index 8c2d6f6af0..836d5cabf8 100644 --- a/rustdoc/game/info/intersection/fn.traffic_signal_body.html +++ b/rustdoc/game/info/intersection/fn.traffic_signal_body.html @@ -1,5 +1,5 @@ traffic_signal_body in game::info::intersection - Rust
fn traffic_signal_body(
     ctx: &mut EventCtx<'_>,
     app: &App,
-    id: IntersectionID
+    id: IntersectionID
 ) -> Widget
\ No newline at end of file diff --git a/rustdoc/game/info/lane/fn.debug.html b/rustdoc/game/info/lane/fn.debug.html index d6a86e79d2..68c62cd9a9 100644 --- a/rustdoc/game/info/lane/fn.debug.html +++ b/rustdoc/game/info/lane/fn.debug.html @@ -2,5 +2,5 @@ ctx: &EventCtx<'_>, app: &App, details: &mut Details, - id: LaneID + id: LaneID ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/lane/fn.debug_body.html b/rustdoc/game/info/lane/fn.debug_body.html index b141e3d325..d0d9c93fff 100644 --- a/rustdoc/game/info/lane/fn.debug_body.html +++ b/rustdoc/game/info/lane/fn.debug_body.html @@ -1 +1 @@ -debug_body in game::info::lane - Rust

Function game::info::lane::debug_body

source ·
fn debug_body(ctx: &EventCtx<'_>, app: &App, id: LaneID) -> Widget
\ No newline at end of file +debug_body in game::info::lane - Rust

Function game::info::lane::debug_body

source ·
fn debug_body(ctx: &EventCtx<'_>, app: &App, id: LaneID) -> Widget
\ No newline at end of file diff --git a/rustdoc/game/info/lane/fn.header.html b/rustdoc/game/info/lane/fn.header.html index 14c72e60cc..20e4b6da21 100644 --- a/rustdoc/game/info/lane/fn.header.html +++ b/rustdoc/game/info/lane/fn.header.html @@ -2,6 +2,6 @@ ctx: &EventCtx<'_>, app: &App, details: &mut Details, - id: LaneID, + id: LaneID, tab: Tab ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/lane/fn.info.html b/rustdoc/game/info/lane/fn.info.html index 0c3f1575ba..f3f7972b55 100644 --- a/rustdoc/game/info/lane/fn.info.html +++ b/rustdoc/game/info/lane/fn.info.html @@ -2,5 +2,5 @@ ctx: &EventCtx<'_>, app: &App, details: &mut Details, - id: LaneID + id: LaneID ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/lane/fn.info_body.html b/rustdoc/game/info/lane/fn.info_body.html index 22b1c0615f..17a3064ee4 100644 --- a/rustdoc/game/info/lane/fn.info_body.html +++ b/rustdoc/game/info/lane/fn.info_body.html @@ -1 +1 @@ -info_body in game::info::lane - Rust

Function game::info::lane::info_body

source ·
fn info_body(ctx: &EventCtx<'_>, app: &App, id: LaneID) -> Widget
\ No newline at end of file +info_body in game::info::lane - Rust

Function game::info::lane::info_body

source ·
fn info_body(ctx: &EventCtx<'_>, app: &App, id: LaneID) -> Widget
\ No newline at end of file diff --git a/rustdoc/game/info/lane/fn.problems.html b/rustdoc/game/info/lane/fn.problems.html index 5b59e39285..e40e2c005d 100644 --- a/rustdoc/game/info/lane/fn.problems.html +++ b/rustdoc/game/info/lane/fn.problems.html @@ -2,6 +2,6 @@ ctx: &mut EventCtx<'_>, app: &App, details: &mut Details, - id: LaneID, + id: LaneID, opts: &ProblemOptions ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/lane/fn.problems_body.html b/rustdoc/game/info/lane/fn.problems_body.html index c875729f7d..89da0743e9 100644 --- a/rustdoc/game/info/lane/fn.problems_body.html +++ b/rustdoc/game/info/lane/fn.problems_body.html @@ -1,6 +1,6 @@ problems_body in game::info::lane - Rust

Function game::info::lane::problems_body

source ·
fn problems_body(
     ctx: &mut EventCtx<'_>,
     app: &App,
-    id: LaneID,
+    id: LaneID,
     opts: &ProblemOptions
 ) -> Widget
\ No newline at end of file diff --git a/rustdoc/game/info/lane/fn.traffic.html b/rustdoc/game/info/lane/fn.traffic.html index 201dd204df..cf8538d404 100644 --- a/rustdoc/game/info/lane/fn.traffic.html +++ b/rustdoc/game/info/lane/fn.traffic.html @@ -2,6 +2,6 @@ ctx: &mut EventCtx<'_>, app: &App, details: &mut Details, - id: LaneID, + id: LaneID, opts: &DataOptions ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/lane/fn.traffic_body.html b/rustdoc/game/info/lane/fn.traffic_body.html index 2f62b0befb..31605e3839 100644 --- a/rustdoc/game/info/lane/fn.traffic_body.html +++ b/rustdoc/game/info/lane/fn.traffic_body.html @@ -1,6 +1,6 @@ traffic_body in game::info::lane - Rust

Function game::info::lane::traffic_body

source ·
fn traffic_body(
     ctx: &mut EventCtx<'_>,
     app: &App,
-    id: LaneID,
+    id: LaneID,
     opts: &DataOptions
 ) -> Widget
\ No newline at end of file diff --git a/rustdoc/game/info/parking_lot/fn.header.html b/rustdoc/game/info/parking_lot/fn.header.html index e9c6c16621..613eb3e9d8 100644 --- a/rustdoc/game/info/parking_lot/fn.header.html +++ b/rustdoc/game/info/parking_lot/fn.header.html @@ -1,6 +1,6 @@ header in game::info::parking_lot - Rust

Function game::info::parking_lot::header

source ·
fn header(
     ctx: &EventCtx<'_>,
     details: &mut Details,
-    id: ParkingLotID,
+    id: ParkingLotID,
     tab: Tab
 ) -> Widget
\ No newline at end of file diff --git a/rustdoc/game/info/parking_lot/fn.info.html b/rustdoc/game/info/parking_lot/fn.info.html index 3062cdb8b6..1447e722d2 100644 --- a/rustdoc/game/info/parking_lot/fn.info.html +++ b/rustdoc/game/info/parking_lot/fn.info.html @@ -2,5 +2,5 @@ ctx: &mut EventCtx<'_>, app: &App, details: &mut Details, - id: ParkingLotID + id: ParkingLotID ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/parking_lot/fn.info_body.html b/rustdoc/game/info/parking_lot/fn.info_body.html index e4147b8cb1..85b09cefa6 100644 --- a/rustdoc/game/info/parking_lot/fn.info_body.html +++ b/rustdoc/game/info/parking_lot/fn.info_body.html @@ -1 +1 @@ -info_body in game::info::parking_lot - Rust

Function game::info::parking_lot::info_body

source ·
fn info_body(ctx: &mut EventCtx<'_>, app: &App, id: ParkingLotID) -> Widget
\ No newline at end of file +info_body in game::info::parking_lot - Rust

Function game::info::parking_lot::info_body

source ·
fn info_body(ctx: &mut EventCtx<'_>, app: &App, id: ParkingLotID) -> Widget
\ No newline at end of file diff --git a/rustdoc/game/info/person/fn.current_status.html b/rustdoc/game/info/person/fn.current_status.html index 76b5d11a65..1938dbe22e 100644 --- a/rustdoc/game/info/person/fn.current_status.html +++ b/rustdoc/game/info/person/fn.current_status.html @@ -1 +1 @@ -current_status in game::info::person - Rust

Function game::info::person::current_status

source ·
fn current_status(ctx: &EventCtx<'_>, person: &Person, map: &Map) -> Widget
\ No newline at end of file +current_status in game::info::person - Rust

Function game::info::person::current_status

source ·
fn current_status(ctx: &EventCtx<'_>, person: &Person, map: &Map) -> Widget
\ No newline at end of file diff --git a/rustdoc/game/info/transit/fn.describe_schedule.html b/rustdoc/game/info/transit/fn.describe_schedule.html index bdd3d36e94..170d83b321 100644 --- a/rustdoc/game/info/transit/fn.describe_schedule.html +++ b/rustdoc/game/info/transit/fn.describe_schedule.html @@ -1 +1 @@ -describe_schedule in game::info::transit - Rust
fn describe_schedule(route: &TransitRoute) -> Text
\ No newline at end of file +describe_schedule in game::info::transit - Rust
fn describe_schedule(route: &TransitRoute) -> Text
\ No newline at end of file diff --git a/rustdoc/game/info/transit/fn.route.html b/rustdoc/game/info/transit/fn.route.html index 852ae46bad..81feaf3eff 100644 --- a/rustdoc/game/info/transit/fn.route.html +++ b/rustdoc/game/info/transit/fn.route.html @@ -2,5 +2,5 @@ ctx: &mut EventCtx<'_>, app: &App, details: &mut Details, - id: TransitRouteID + id: TransitRouteID ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/transit/fn.route_body.html b/rustdoc/game/info/transit/fn.route_body.html index bc73c9df76..d44a94df3d 100644 --- a/rustdoc/game/info/transit/fn.route_body.html +++ b/rustdoc/game/info/transit/fn.route_body.html @@ -2,5 +2,5 @@ ctx: &mut EventCtx<'_>, app: &App, details: &mut Details, - id: TransitRouteID + id: TransitRouteID ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/transit/fn.stop.html b/rustdoc/game/info/transit/fn.stop.html index 44a255b452..10702488d6 100644 --- a/rustdoc/game/info/transit/fn.stop.html +++ b/rustdoc/game/info/transit/fn.stop.html @@ -2,5 +2,5 @@ ctx: &mut EventCtx<'_>, app: &App, details: &mut Details, - id: TransitStopID + id: TransitStopID ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/transit/fn.stop_body.html b/rustdoc/game/info/transit/fn.stop_body.html index 7ad79db11f..a5ac8d274b 100644 --- a/rustdoc/game/info/transit/fn.stop_body.html +++ b/rustdoc/game/info/transit/fn.stop_body.html @@ -2,5 +2,5 @@ ctx: &mut EventCtx<'_>, app: &App, details: &mut Details, - id: TransitStopID + id: TransitStopID ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/trip/fn.draw_problems.html b/rustdoc/game/info/trip/fn.draw_problems.html index 43cec3bf78..c9dbc409f0 100644 --- a/rustdoc/game/info/trip/fn.draw_problems.html +++ b/rustdoc/game/info/trip/fn.draw_problems.html @@ -4,5 +4,5 @@ analytics: &Analytics, details: &mut Details, id: TripID, - map: &Map + map: &Map )

\ No newline at end of file diff --git a/rustdoc/game/info/trip/fn.make_elevation.html b/rustdoc/game/info/trip/fn.make_elevation.html index 8ed3afc9c6..2357d209a8 100644 --- a/rustdoc/game/info/trip/fn.make_elevation.html +++ b/rustdoc/game/info/trip/fn.make_elevation.html @@ -2,7 +2,7 @@ ctx: &EventCtx<'_>, color: Color, walking: bool, - path: &Path, - map: &Map, + path: &Path, + map: &Map, unit_fmt: UnitFmt ) -> Widget

\ No newline at end of file diff --git a/rustdoc/game/info/trip/fn.make_trip_details.html b/rustdoc/game/info/trip/fn.make_trip_details.html index fb440e950c..1bc5f0e39d 100644 --- a/rustdoc/game/info/trip/fn.make_trip_details.html +++ b/rustdoc/game/info/trip/fn.make_trip_details.html @@ -5,7 +5,7 @@ open_trip: &mut OpenTrip, details: &mut Details, phases: Vec<TripPhase>, - map_for_pathfinding: &Map, + map_for_pathfinding: &Map, progress_along_path: Option<f64> ) -> Widget
Expand description

Creates the timeline, location warp, and time warp buttons for one trip, and draws the route on the map.

diff --git a/rustdoc/game/layer/favorites/struct.Favorites.html b/rustdoc/game/layer/favorites/struct.Favorites.html index 6853ed6643..279db8883b 100644 --- a/rustdoc/game/layer/favorites/struct.Favorites.html +++ b/rustdoc/game/layer/favorites/struct.Favorites.html @@ -1,7 +1,7 @@ Favorites in game::layer::favorites - Rust

Struct game::layer::favorites::Favorites

source ·
pub struct Favorites {
     pub buildings: BTreeSet<OsmID>,
 }
Expand description

A set of buildings that the player has starred, persisted as player data.

-

Fields§

§buildings: BTreeSet<OsmID>

Implementations§

source§

impl Favorites

source

fn load(app: &App) -> Favorites

source

fn path(app: &App) -> String

source

pub fn contains(app: &App, b: BuildingID) -> bool

source

pub fn add(app: &App, b: BuildingID)

source

pub fn remove(app: &App, b: BuildingID)

Trait Implementations§

source§

impl<'de> Deserialize<'de> for Favorites

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where +

Fields§

§buildings: BTreeSet<OsmID>

Implementations§

source§

impl Favorites

source

fn load(app: &App) -> Favorites

source

fn path(app: &App) -> String

source

pub fn contains(app: &App, b: BuildingID) -> bool

source

pub fn add(app: &App, b: BuildingID)

source

pub fn remove(app: &App, b: BuildingID)

Trait Implementations§

source§

impl<'de> Deserialize<'de> for Favorites

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Favorites

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/rustdoc/game/layer/parking/enum.Loc.html b/rustdoc/game/layer/parking/enum.Loc.html index cc151e5479..9f7a392c1a 100644 --- a/rustdoc/game/layer/parking/enum.Loc.html +++ b/rustdoc/game/layer/parking/enum.Loc.html @@ -1,8 +1,8 @@ Loc in game::layer::parking - Rust

Enum game::layer::parking::Loc

source ·
enum Loc {
-    Road(RoadID),
-    Bldg(BuildingID),
-    Lot(ParkingLotID),
-}

Variants§

Implementations§

Trait Implementations§

source§

impl Clone for Loc

source§

fn clone(&self) -> Loc

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Ord for Loc

source§

fn cmp(&self, other: &Loc) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere + Road(RoadID), + Bldg(BuildingID), + Lot(ParkingLotID), +}

Variants§

§

Road(RoadID)

§

Bldg(BuildingID)

§

Lot(ParkingLotID)

Implementations§

Trait Implementations§

source§

impl Clone for Loc

source§

fn clone(&self) -> Loc

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Ord for Loc

source§

fn cmp(&self, other: &Loc) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Loc

source§

fn eq(&self, other: &Loc) -> bool

This method tests for self and other values to be equal, and is used diff --git a/rustdoc/game/layer/problems_diff/struct.RelativeProblemMap.html b/rustdoc/game/layer/problems_diff/struct.RelativeProblemMap.html index 8729daea3a..aa770e97ed 100644 --- a/rustdoc/game/layer/problems_diff/struct.RelativeProblemMap.html +++ b/rustdoc/game/layer/problems_diff/struct.RelativeProblemMap.html @@ -3,12 +3,12 @@ opts: ProblemTypes, draw: ToggleZoomed, panel: Panel, - before_road: Counter<RoadID>, - before_intersection: Counter<IntersectionID>, - after_road: Counter<RoadID>, - after_intersection: Counter<IntersectionID>, + before_road: Counter<RoadID>, + before_intersection: Counter<IntersectionID>, + after_road: Counter<RoadID>, + after_intersection: Counter<IntersectionID>, tooltip: Option<Text>, -}

Fields§

§time: Time§opts: ProblemTypes§draw: ToggleZoomed§panel: Panel§before_road: Counter<RoadID>§before_intersection: Counter<IntersectionID>§after_road: Counter<RoadID>§after_intersection: Counter<IntersectionID>§tooltip: Option<Text>

Implementations§

source§

impl RelativeProblemMap

source

pub fn new(ctx: &mut EventCtx<'_>, app: &App, opts: ProblemTypes) -> Self

Trait Implementations§

source§

impl Layer for RelativeProblemMap

source§

fn name(&self) -> Option<&'static str>

source§

fn event( +}

Fields§

§time: Time§opts: ProblemTypes§draw: ToggleZoomed§panel: Panel§before_road: Counter<RoadID>§before_intersection: Counter<IntersectionID>§after_road: Counter<RoadID>§after_intersection: Counter<IntersectionID>§tooltip: Option<Text>

Implementations§

source§

impl RelativeProblemMap

source

pub fn new(ctx: &mut EventCtx<'_>, app: &App, opts: ProblemTypes) -> Self

Trait Implementations§

source§

impl Layer for RelativeProblemMap

source§

fn name(&self) -> Option<&'static str>

source§

fn event( &mut self, ctx: &mut EventCtx<'_>, app: &mut App diff --git a/rustdoc/game/layer/traffic/fn.cluster_jams.html b/rustdoc/game/layer/traffic/fn.cluster_jams.html index e82f95062b..68c4b4cc97 100644 --- a/rustdoc/game/layer/traffic/fn.cluster_jams.html +++ b/rustdoc/game/layer/traffic/fn.cluster_jams.html @@ -1,4 +1,4 @@ cluster_jams in game::layer::traffic - Rust

Function game::layer::traffic::cluster_jams

source ·
fn cluster_jams(
-    map: &Map,
-    problems: Vec<(IntersectionID, Time)>
+    map: &Map,
+    problems: Vec<(IntersectionID, Time)>
 ) -> Vec<(Polygon, Polygon)>
\ No newline at end of file diff --git a/rustdoc/game/layer/traffic/struct.Jam.html b/rustdoc/game/layer/traffic/struct.Jam.html index aff056c55c..bb6ded14f3 100644 --- a/rustdoc/game/layer/traffic/struct.Jam.html +++ b/rustdoc/game/layer/traffic/struct.Jam.html @@ -1,7 +1,7 @@ Jam in game::layer::traffic - Rust

Struct game::layer::traffic::Jam

source ·
struct Jam {
-    epicenter: IntersectionID,
-    members: BTreeSet<IntersectionID>,
-}

Fields§

§epicenter: IntersectionID§members: BTreeSet<IntersectionID>

Implementations§

source§

impl Jam

source

fn adjacent_to(&self, map: &Map, i: IntersectionID) -> bool

source

fn all_polygons(self, map: &Map) -> Vec<Polygon>

Auto Trait Implementations§

§

impl RefUnwindSafe for Jam

§

impl Send for Jam

§

impl Sync for Jam

§

impl Unpin for Jam

§

impl UnwindSafe for Jam

Blanket Implementations§

source§

impl<T> Any for Twhere + epicenter: IntersectionID, + members: BTreeSet<IntersectionID>, +}

Fields§

§epicenter: IntersectionID§members: BTreeSet<IntersectionID>

Implementations§

source§

impl Jam

source

fn adjacent_to(&self, map: &Map, i: IntersectionID) -> bool

source

fn all_polygons(self, map: &Map) -> Vec<Polygon>

Auto Trait Implementations§

§

impl RefUnwindSafe for Jam

§

impl Send for Jam

§

impl Sync for Jam

§

impl Unpin for Jam

§

impl UnwindSafe for Jam

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere diff --git a/rustdoc/game/pregame/proposals/fn.launch.html b/rustdoc/game/pregame/proposals/fn.launch.html index bf7a9ae7fb..9ff6bc6319 100644 --- a/rustdoc/game/pregame/proposals/fn.launch.html +++ b/rustdoc/game/pregame/proposals/fn.launch.html @@ -1,5 +1,5 @@ launch in game::pregame::proposals - Rust

Function game::pregame::proposals::launch

source ·
fn launch(
     ctx: &mut EventCtx<'_>,
     app: &App,
-    edits: PermanentMapEdits
+    edits: PermanentMapEdits
 ) -> Transition<App>
\ No newline at end of file diff --git a/rustdoc/game/pregame/proposals/struct.Proposals.html b/rustdoc/game/pregame/proposals/struct.Proposals.html index 5b7bb102db..df9c6891f4 100644 --- a/rustdoc/game/pregame/proposals/struct.Proposals.html +++ b/rustdoc/game/pregame/proposals/struct.Proposals.html @@ -1,7 +1,7 @@ Proposals in game::pregame::proposals - Rust
pub struct Proposals {
-    proposals: HashMap<String, PermanentMapEdits>,
+    proposals: HashMap<String, PermanentMapEdits>,
     current: Option<String>,
-}

Fields§

§proposals: HashMap<String, PermanentMapEdits>§current: Option<String>

Implementations§

source§

impl Proposals

source

pub fn new_state( +}

Fields§

§proposals: HashMap<String, PermanentMapEdits>§current: Option<String>

Implementations§

source§

impl Proposals

source

pub fn new_state( ctx: &mut EventCtx<'_>, current: Option<String> ) -> Box<dyn State<App>>

Trait Implementations§

source§

impl SimpleState<App> for Proposals

source§

fn on_click( diff --git a/rustdoc/game/render/agents/struct.AgentCache.html b/rustdoc/game/render/agents/struct.AgentCache.html index a3e900eaf1..ff97f3d030 100644 --- a/rustdoc/game/render/agents/struct.AgentCache.html +++ b/rustdoc/game/render/agents/struct.AgentCache.html @@ -1,20 +1,20 @@ AgentCache in game::render::agents - Rust

Struct game::render::agents::AgentCache

source ·
pub struct AgentCache {
     pub unzoomed_agents: UnzoomedAgents,
     time: Option<Time>,
-    agents_per_on: HashMap<Traversable, Vec<Box<dyn GameRenderable>>>,
+    agents_per_on: HashMap<Traversable, Vec<Box<dyn GameRenderable>>>,
     unzoomed: Option<(Time, UnzoomedAgents, QuadTree<AgentID>, Drawable)>,
 }

Fields§

§unzoomed_agents: UnzoomedAgents

This is controlled almost entirely by the minimap panel. It has no meaning in edit mode.

-
§time: Option<Time>§agents_per_on: HashMap<Traversable, Vec<Box<dyn GameRenderable>>>§unzoomed: Option<(Time, UnzoomedAgents, QuadTree<AgentID>, Drawable)>

Implementations§

source§

impl AgentCache

source

pub fn new() -> AgentCache

source

pub fn get(&self, on: Traversable) -> Vec<&dyn GameRenderable>

source

pub fn populate_if_needed( +

§time: Option<Time>§agents_per_on: HashMap<Traversable, Vec<Box<dyn GameRenderable>>>§unzoomed: Option<(Time, UnzoomedAgents, QuadTree<AgentID>, Drawable)>

Implementations§

source§

impl AgentCache

source

pub fn new() -> AgentCache

source

pub fn get(&self, on: Traversable) -> Vec<&dyn GameRenderable>

source

pub fn populate_if_needed( &mut self, - on: Traversable, - map: &Map, + on: Traversable, + map: &Map, sim: &Sim, cs: &ColorScheme, prerender: &Prerender )

source

pub fn calculate_unzoomed_agents<P: AsRef<Prerender>>( &mut self, prerender: &mut P, - map: &Map, + map: &Map, sim: &Sim, cs: &ColorScheme ) -> &QuadTree<AgentID>

If the sim time has changed or the unzoomed agent filters have been modified, recalculate @@ -22,7 +22,7 @@ the quadtree and drawable for all unzoomed agents.

source

pub fn draw_unzoomed_agents( &mut self, g: &mut GfxCtx<'_>, - map: &Map, + map: &Map, sim: &Sim, cs: &ColorScheme, opts: &Options diff --git a/rustdoc/game/render/bike/struct.DrawBike.html b/rustdoc/game/render/bike/struct.DrawBike.html index f5189e0492..df7372da14 100644 --- a/rustdoc/game/render/bike/struct.DrawBike.html +++ b/rustdoc/game/render/bike/struct.DrawBike.html @@ -5,11 +5,11 @@ draw_default: Drawable, }

Fields§

§id: CarID§body_circle: Circle§zorder: isize§draw_default: Drawable

Implementations§

source§

impl DrawBike

source

pub fn new( input: DrawCarInput, - map: &Map, + map: &Map, sim: &Sim, prerender: &Prerender, cs: &ColorScheme -) -> DrawBike

Trait Implementations§

source§

impl GameRenderable for DrawBike

source§

fn get_id(&self) -> ID

source§

fn draw(&self, g: &mut GfxCtx<'_>, _: &dyn AppLike, _: &DrawOptions)

source§

fn get_outline(&self, _: &Map) -> Tessellation

source§

fn contains_pt(&self, pt: Pt2D, _: &Map) -> bool

source§

fn get_zorder(&self) -> isize

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> DrawBike

Trait Implementations§

source§

impl GameRenderable for DrawBike

source§

fn get_id(&self) -> ID

source§

fn draw(&self, g: &mut GfxCtx<'_>, _: &dyn AppLike, _: &DrawOptions)

source§

fn get_outline(&self, _: &Map) -> Tessellation

source§

fn contains_pt(&self, pt: Pt2D, _: &Map) -> bool

source§

fn get_zorder(&self) -> isize

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere diff --git a/rustdoc/game/render/car/struct.DrawCar.html b/rustdoc/game/render/car/struct.DrawCar.html index 8b59f3f8b4..f149fb60bf 100644 --- a/rustdoc/game/render/car/struct.DrawCar.html +++ b/rustdoc/game/render/car/struct.DrawCar.html @@ -6,11 +6,11 @@ draw_default: Drawable, }

Fields§

§id: CarID§body: PolyLine§body_polygon: Polygon§zorder: isize§draw_default: Drawable

Implementations§

source§

impl DrawCar

source

pub fn new( input: DrawCarInput, - map: &Map, + map: &Map, sim: &Sim, prerender: &Prerender, cs: &ColorScheme -) -> DrawCar

Trait Implementations§

source§

impl GameRenderable for DrawCar

source§

fn get_id(&self) -> ID

source§

fn draw(&self, g: &mut GfxCtx<'_>, _: &dyn AppLike, _: &DrawOptions)

source§

fn get_outline(&self, _: &Map) -> Tessellation

source§

fn contains_pt(&self, pt: Pt2D, _: &Map) -> bool

source§

fn get_zorder(&self) -> isize

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> DrawCar

Trait Implementations§

source§

impl GameRenderable for DrawCar

source§

fn get_id(&self) -> ID

source§

fn draw(&self, g: &mut GfxCtx<'_>, _: &dyn AppLike, _: &DrawOptions)

source§

fn get_outline(&self, _: &Map) -> Tessellation

source§

fn contains_pt(&self, pt: Pt2D, _: &Map) -> bool

source§

fn get_zorder(&self) -> isize

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere diff --git a/rustdoc/game/render/fn.draw_vehicle.html b/rustdoc/game/render/fn.draw_vehicle.html index 7926f8a0d7..d86d5776f7 100644 --- a/rustdoc/game/render/fn.draw_vehicle.html +++ b/rustdoc/game/render/fn.draw_vehicle.html @@ -1,6 +1,6 @@ draw_vehicle in game::render - Rust

Function game::render::draw_vehicle

source ·
fn draw_vehicle(
     input: DrawCarInput,
-    map: &Map,
+    map: &Map,
     sim: &Sim,
     prerender: &Prerender,
     cs: &ColorScheme
diff --git a/rustdoc/game/render/pedestrian/struct.DrawPedCrowd.html b/rustdoc/game/render/pedestrian/struct.DrawPedCrowd.html
index 3a57ffb94b..c7659689b2 100644
--- a/rustdoc/game/render/pedestrian/struct.DrawPedCrowd.html
+++ b/rustdoc/game/render/pedestrian/struct.DrawPedCrowd.html
@@ -6,10 +6,10 @@
     draw_default: Drawable,
 }

Fields§

§members: Vec<PedestrianID>§blob: Polygon§blob_pl: PolyLine§zorder: isize§draw_default: Drawable

Implementations§

source§

impl DrawPedCrowd

source

pub fn new( input: DrawPedCrowdInput, - map: &Map, + map: &Map, prerender: &Prerender, cs: &ColorScheme -) -> DrawPedCrowd

Trait Implementations§

source§

impl GameRenderable for DrawPedCrowd

source§

fn get_id(&self) -> ID

source§

fn draw(&self, g: &mut GfxCtx<'_>, _: &dyn AppLike, _: &DrawOptions)

source§

fn get_outline(&self, _: &Map) -> Tessellation

source§

fn get_zorder(&self) -> isize

source§

fn contains_pt(&self, pt: Pt2D, _: &Map) -> bool

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> DrawPedCrowd

Trait Implementations§

source§

impl GameRenderable for DrawPedCrowd

source§

fn get_id(&self) -> ID

source§

fn draw(&self, g: &mut GfxCtx<'_>, _: &dyn AppLike, _: &DrawOptions)

source§

fn get_outline(&self, _: &Map) -> Tessellation

source§

fn get_zorder(&self) -> isize

source§

fn contains_pt(&self, pt: Pt2D, _: &Map) -> bool

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere diff --git a/rustdoc/game/render/pedestrian/struct.DrawPedestrian.html b/rustdoc/game/render/pedestrian/struct.DrawPedestrian.html index 49c183bfcd..d86c6b2f3a 100644 --- a/rustdoc/game/render/pedestrian/struct.DrawPedestrian.html +++ b/rustdoc/game/render/pedestrian/struct.DrawPedestrian.html @@ -6,7 +6,7 @@ }

Fields§

§id: PedestrianID§body_circle: Circle§zorder: isize§draw_default: Drawable

Implementations§

source§

impl DrawPedestrian

source

pub fn new( input: DrawPedestrianInput, step_count: usize, - map: &Map, + map: &Map, sim: &Sim, prerender: &Prerender, cs: &ColorScheme @@ -16,7 +16,7 @@ cs: &ColorScheme, input: &DrawPedestrianInput, step_count: usize -)

Trait Implementations§

source§

impl GameRenderable for DrawPedestrian

source§

fn get_id(&self) -> ID

source§

fn draw(&self, g: &mut GfxCtx<'_>, _: &dyn AppLike, _: &DrawOptions)

source§

fn get_outline(&self, _: &Map) -> Tessellation

source§

fn contains_pt(&self, pt: Pt2D, _: &Map) -> bool

source§

fn get_zorder(&self) -> isize

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +)

Trait Implementations§

source§

impl GameRenderable for DrawPedestrian

source§

fn get_id(&self) -> ID

source§

fn draw(&self, g: &mut GfxCtx<'_>, _: &dyn AppLike, _: &DrawOptions)

source§

fn get_outline(&self, _: &Map) -> Tessellation

source§

fn contains_pt(&self, pt: Pt2D, _: &Map) -> bool

source§

fn get_zorder(&self) -> isize

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere diff --git a/rustdoc/game/render/trait.GameRenderable.html b/rustdoc/game/render/trait.GameRenderable.html index 1f5d7077d0..4b0db209c6 100644 --- a/rustdoc/game/render/trait.GameRenderable.html +++ b/rustdoc/game/render/trait.GameRenderable.html @@ -2,9 +2,9 @@ // Required methods fn get_id(&self) -> ID; fn draw(&self, g: &mut GfxCtx<'_>, app: &dyn AppLike, opts: &DrawOptions); - fn get_outline(&self, map: &Map) -> Tessellation; - fn contains_pt(&self, pt: Pt2D, map: &Map) -> bool; + fn get_outline(&self, map: &Map) -> Tessellation; + fn contains_pt(&self, pt: Pt2D, map: &Map) -> bool; // Provided method fn get_zorder(&self) -> isize { ... } -}

Required Methods§

source

fn get_id(&self) -> ID

source

fn draw(&self, g: &mut GfxCtx<'_>, app: &dyn AppLike, opts: &DrawOptions)

source

fn get_outline(&self, map: &Map) -> Tessellation

source

fn contains_pt(&self, pt: Pt2D, map: &Map) -> bool

Provided Methods§

source

fn get_zorder(&self) -> isize

Implementors§

\ No newline at end of file +}

Required Methods§

source

fn get_id(&self) -> ID

source

fn draw(&self, g: &mut GfxCtx<'_>, app: &dyn AppLike, opts: &DrawOptions)

source

fn get_outline(&self, map: &Map) -> Tessellation

source

fn contains_pt(&self, pt: Pt2D, map: &Map) -> bool

Provided Methods§

source

fn get_zorder(&self) -> isize

Implementors§

\ No newline at end of file diff --git a/rustdoc/game/sandbox/dashboards/commuter/fn.build_shape_for_border.html b/rustdoc/game/sandbox/dashboards/commuter/fn.build_shape_for_border.html index f3cccf9855..337c04fbbf 100644 --- a/rustdoc/game/sandbox/dashboards/commuter/fn.build_shape_for_border.html +++ b/rustdoc/game/sandbox/dashboards/commuter/fn.build_shape_for_border.html @@ -1,5 +1,5 @@ build_shape_for_border in game::sandbox::dashboards::commuter - Rust
fn build_shape_for_border(
-    border: &Intersection,
+    border: &Intersection,
     border_type: BorderType,
-    map: &Map
+    map: &Map
 ) -> Polygon
\ No newline at end of file diff --git a/rustdoc/game/sandbox/dashboards/commuter/fn.group_bldgs.html b/rustdoc/game/sandbox/dashboards/commuter/fn.group_bldgs.html index a42de3d121..bcffac00bf 100644 --- a/rustdoc/game/sandbox/dashboards/commuter/fn.group_bldgs.html +++ b/rustdoc/game/sandbox/dashboards/commuter/fn.group_bldgs.html @@ -1,4 +1,4 @@ group_bldgs in game::sandbox::dashboards::commuter - Rust
fn group_bldgs(
     app: &App,
     timer: &mut Timer<'_>
-) -> Result<(HashMap<BuildingID, usize>, HashMap<IntersectionID, usize>, Vec<Block>)>
\ No newline at end of file +) -> Result<(HashMap<BuildingID, usize>, HashMap<IntersectionID, usize>, Vec<Block>)>

\ No newline at end of file diff --git a/rustdoc/game/sandbox/dashboards/commuter/struct.Block.html b/rustdoc/game/sandbox/dashboards/commuter/struct.Block.html index 74d5f16eff..ccd5e05e0a 100644 --- a/rustdoc/game/sandbox/dashboards/commuter/struct.Block.html +++ b/rustdoc/game/sandbox/dashboards/commuter/struct.Block.html @@ -1,9 +1,9 @@ Block in game::sandbox::dashboards::commuter - Rust
struct Block {
     id: usize,
-    bldgs: HashSet<BuildingID>,
-    borders: HashSet<IntersectionID>,
+    bldgs: HashSet<BuildingID>,
+    borders: HashSet<IntersectionID>,
     shape: Polygon,
-}

Fields§

§id: usize§bldgs: HashSet<BuildingID>§borders: HashSet<IntersectionID>§shape: Polygon

Auto Trait Implementations§

§

impl RefUnwindSafe for Block

§

impl Send for Block

§

impl Sync for Block

§

impl Unpin for Block

§

impl UnwindSafe for Block

Blanket Implementations§

source§

impl<T> Any for Twhere +}

Fields§

§id: usize§bldgs: HashSet<BuildingID>§borders: HashSet<IntersectionID>§shape: Polygon

Auto Trait Implementations§

§

impl RefUnwindSafe for Block

§

impl Send for Block

§

impl Sync for Block

§

impl Unpin for Block

§

impl UnwindSafe for Block

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere diff --git a/rustdoc/game/sandbox/dashboards/commuter/struct.CommuterPatterns.html b/rustdoc/game/sandbox/dashboards/commuter/struct.CommuterPatterns.html index 6a2207574b..5f820947e0 100644 --- a/rustdoc/game/sandbox/dashboards/commuter/struct.CommuterPatterns.html +++ b/rustdoc/game/sandbox/dashboards/commuter/struct.CommuterPatterns.html @@ -1,6 +1,6 @@ CommuterPatterns in game::sandbox::dashboards::commuter - Rust
pub struct CommuterPatterns {
-    bldg_to_block: HashMap<BuildingID, usize>,
-    border_to_block: HashMap<IntersectionID, usize>,
+    bldg_to_block: HashMap<BuildingID, usize>,
+    border_to_block: HashMap<IntersectionID, usize>,
     blocks: Vec<Block>,
     current_block: (BlockSelection, Drawable),
     filter: Filter,
@@ -8,7 +8,7 @@
     trips_to_block: Vec<Vec<TripInfo>>,
     panel: Panel,
     draw_all_blocks: Drawable,
-}

Fields§

§bldg_to_block: HashMap<BuildingID, usize>§border_to_block: HashMap<IntersectionID, usize>§blocks: Vec<Block>§current_block: (BlockSelection, Drawable)§filter: Filter§trips_from_block: Vec<Vec<TripInfo>>§trips_to_block: Vec<Vec<TripInfo>>§panel: Panel§draw_all_blocks: Drawable

Implementations§

source§

impl CommuterPatterns

source

pub fn new_state(ctx: &mut EventCtx<'_>, app: &mut App) -> Box<dyn State<App>>

source

fn count_per_block(&self, base: &Block) -> Vec<(&Block, usize)>

source

fn build_block_drawable<'a>( +}

Fields§

§bldg_to_block: HashMap<BuildingID, usize>§border_to_block: HashMap<IntersectionID, usize>§blocks: Vec<Block>§current_block: (BlockSelection, Drawable)§filter: Filter§trips_from_block: Vec<Vec<TripInfo>>§trips_to_block: Vec<Vec<TripInfo>>§panel: Panel§draw_all_blocks: Drawable

Implementations§

source§

impl CommuterPatterns

source

pub fn new_state(ctx: &mut EventCtx<'_>, app: &mut App) -> Box<dyn State<App>>

source

fn count_per_block(&self, base: &Block) -> Vec<(&Block, usize)>

source

fn build_block_drawable<'a>( &self, block_selection: BlockSelection, ctx: &EventCtx<'_>, diff --git a/rustdoc/game/sandbox/dashboards/commuter/struct.Loop.html b/rustdoc/game/sandbox/dashboards/commuter/struct.Loop.html index 6c887cada4..852c96cc39 100644 --- a/rustdoc/game/sandbox/dashboards/commuter/struct.Loop.html +++ b/rustdoc/game/sandbox/dashboards/commuter/struct.Loop.html @@ -1,8 +1,8 @@ Loop in game::sandbox::dashboards::commuter - Rust
struct Loop {
-    bldgs: HashSet<BuildingID>,
+    bldgs: HashSet<BuildingID>,
     proper: bool,
-    roads: HashSet<RoadID>,
-}

Fields§

§bldgs: HashSet<BuildingID>§proper: bool§roads: HashSet<RoadID>

Auto Trait Implementations§

§

impl RefUnwindSafe for Loop

§

impl Send for Loop

§

impl Sync for Loop

§

impl Unpin for Loop

§

impl UnwindSafe for Loop

Blanket Implementations§

source§

impl<T> Any for Twhere + roads: HashSet<RoadID>, +}

Fields§

§bldgs: HashSet<BuildingID>§proper: bool§roads: HashSet<RoadID>

Auto Trait Implementations§

§

impl RefUnwindSafe for Loop

§

impl Send for Loop

§

impl Sync for Loop

§

impl Unpin for Loop

§

impl UnwindSafe for Loop

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere diff --git a/rustdoc/game/sandbox/dashboards/traffic_signals/struct.Demand.html b/rustdoc/game/sandbox/dashboards/traffic_signals/struct.Demand.html index 639fb0a26f..3deab6a738 100644 --- a/rustdoc/game/sandbox/dashboards/traffic_signals/struct.Demand.html +++ b/rustdoc/game/sandbox/dashboards/traffic_signals/struct.Demand.html @@ -1,9 +1,9 @@ Demand in game::sandbox::dashboards::traffic_signals - Rust
struct Demand {
-    raw: Vec<(Time, MovementID)>,
-}

Fields§

§raw: Vec<(Time, MovementID)>

Implementations§

source§

impl Demand

source

fn all_demand( + raw: Vec<(Time, MovementID)>, +}

Fields§

§raw: Vec<(Time, MovementID)>

Implementations§

source§

impl Demand

source

fn all_demand( app: &App, timer: &mut Timer<'_> -) -> HashMap<IntersectionID, Demand>

source

fn count(&self, start: Time) -> Counter<MovementID>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> HashMap<IntersectionID, Demand>

source

fn count(&self, start: Time) -> Counter<MovementID>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere diff --git a/rustdoc/game/sandbox/dashboards/traffic_signals/struct.TrafficSignalDemand.html b/rustdoc/game/sandbox/dashboards/traffic_signals/struct.TrafficSignalDemand.html index c250deb9de..c04a08ffd7 100644 --- a/rustdoc/game/sandbox/dashboards/traffic_signals/struct.TrafficSignalDemand.html +++ b/rustdoc/game/sandbox/dashboards/traffic_signals/struct.TrafficSignalDemand.html @@ -1,9 +1,9 @@ TrafficSignalDemand in game::sandbox::dashboards::traffic_signals - Rust
pub struct TrafficSignalDemand {
     panel: Panel,
-    all_demand: HashMap<IntersectionID, Demand>,
+    all_demand: HashMap<IntersectionID, Demand>,
     hour: Time,
     world: World<DummyID>,
-}

Fields§

§panel: Panel§all_demand: HashMap<IntersectionID, Demand>§hour: Time§world: World<DummyID>

Implementations§

source§

impl TrafficSignalDemand

source

pub fn new_state(ctx: &mut EventCtx<'_>, app: &mut App) -> Box<dyn State<App>>

source

fn rebuild_world(&mut self, ctx: &mut EventCtx<'_>, app: &App)

Trait Implementations§

source§

impl State<App> for TrafficSignalDemand

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
source§

fn draw(&self, g: &mut GfxCtx<'_>, app: &App)

Draw
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving +}

Fields§

§panel: Panel§all_demand: HashMap<IntersectionID, Demand>§hour: Time§world: World<DummyID>

Implementations§

source§

impl TrafficSignalDemand

source

pub fn new_state(ctx: &mut EventCtx<'_>, app: &mut App) -> Box<dyn State<App>>

source

fn rebuild_world(&mut self, ctx: &mut EventCtx<'_>, app: &App)

Trait Implementations§

source§

impl State<App> for TrafficSignalDemand

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
source§

fn draw(&self, g: &mut GfxCtx<'_>, app: &App)

Draw
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving the State-specific state appropriately.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere diff --git a/rustdoc/game/sandbox/gameplay/enum.GameplayMode.html b/rustdoc/game/sandbox/gameplay/enum.GameplayMode.html index 16338de82a..7d746819dd 100644 --- a/rustdoc/game/sandbox/gameplay/enum.GameplayMode.html +++ b/rustdoc/game/sandbox/gameplay/enum.GameplayMode.html @@ -10,7 +10,7 @@ app: &App, rng: XorShiftRng, timer: &mut Timer<'_> -) -> LoadScenario

source

pub fn can_edit_roads(&self) -> bool

source

pub fn can_edit_stop_signs(&self) -> bool

source

pub fn can_jump_to_time(&self) -> bool

source

pub fn allows(&self, edits: &MapEdits) -> bool

source

pub fn initialize( +) -> LoadScenario

source

pub fn can_edit_roads(&self) -> bool

source

pub fn can_edit_stop_signs(&self) -> bool

source

pub fn can_jump_to_time(&self) -> bool

source

pub fn allows(&self, edits: &MapEdits) -> bool

source

pub fn initialize( &self, ctx: &mut EventCtx<'_>, app: &mut App diff --git a/rustdoc/game/sandbox/gameplay/fix_traffic_signals/struct.FixTrafficSignals.html b/rustdoc/game/sandbox/gameplay/fix_traffic_signals/struct.FixTrafficSignals.html index cd40bce059..295d64da05 100644 --- a/rustdoc/game/sandbox/gameplay/fix_traffic_signals/struct.FixTrafficSignals.html +++ b/rustdoc/game/sandbox/gameplay/fix_traffic_signals/struct.FixTrafficSignals.html @@ -1,10 +1,10 @@ FixTrafficSignals in game::sandbox::gameplay::fix_traffic_signals - Rust
pub struct FixTrafficSignals {
     top_right: Panel,
     time: Time,
-    worst: Option<(IntersectionID, Duration)>,
+    worst: Option<(IntersectionID, Duration)>,
     done_at: Option<Time>,
     mode: GameplayMode,
-}

Fields§

§top_right: Panel§time: Time§worst: Option<(IntersectionID, Duration)>§done_at: Option<Time>§mode: GameplayMode

Implementations§

source§

impl FixTrafficSignals

source

pub fn new_state(ctx: &mut EventCtx<'_>) -> Box<dyn GameplayState>

source

pub fn cutscene_pt1( +}

Fields§

§top_right: Panel§time: Time§worst: Option<(IntersectionID, Duration)>§done_at: Option<Time>§mode: GameplayMode

Implementations§

source§

impl FixTrafficSignals

source

pub fn new_state(ctx: &mut EventCtx<'_>) -> Box<dyn GameplayState>

source

pub fn cutscene_pt1( ctx: &mut EventCtx<'_>, _: &App, _: &GameplayMode diff --git a/rustdoc/game/sandbox/gameplay/freeform/area_spawner/struct.Area.html b/rustdoc/game/sandbox/gameplay/freeform/area_spawner/struct.Area.html index feac2969eb..c58b095805 100644 --- a/rustdoc/game/sandbox/gameplay/freeform/area_spawner/struct.Area.html +++ b/rustdoc/game/sandbox/gameplay/freeform/area_spawner/struct.Area.html @@ -1,8 +1,8 @@ Area in game::sandbox::gameplay::freeform::area_spawner - Rust
struct Area {
     polygon: Polygon,
-    borders: Vec<IntersectionID>,
-    buildings: Vec<BuildingID>,
-}

Fields§

§polygon: Polygon§borders: Vec<IntersectionID>§buildings: Vec<BuildingID>

Implementations§

source§

impl Area

source

fn new(app: &App, polygon: Polygon) -> Area

Auto Trait Implementations§

§

impl RefUnwindSafe for Area

§

impl Send for Area

§

impl Sync for Area

§

impl Unpin for Area

§

impl UnwindSafe for Area

Blanket Implementations§

source§

impl<T> Any for Twhere + borders: Vec<IntersectionID>, + buildings: Vec<BuildingID>, +}

Fields§

§polygon: Polygon§borders: Vec<IntersectionID>§buildings: Vec<BuildingID>

Implementations§

source§

impl Area

source

fn new(app: &App, polygon: Polygon) -> Area

Auto Trait Implementations§

§

impl RefUnwindSafe for Area

§

impl Send for Area

§

impl Sync for Area

§

impl Unpin for Area

§

impl UnwindSafe for Area

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere diff --git a/rustdoc/game/sandbox/gameplay/freeform/fn.spawn_agents_around.html b/rustdoc/game/sandbox/gameplay/freeform/fn.spawn_agents_around.html index 3cded98ae9..4835536a86 100644 --- a/rustdoc/game/sandbox/gameplay/freeform/fn.spawn_agents_around.html +++ b/rustdoc/game/sandbox/gameplay/freeform/fn.spawn_agents_around.html @@ -1 +1 @@ -spawn_agents_around in game::sandbox::gameplay::freeform - Rust
pub fn spawn_agents_around(i: IntersectionID, app: &mut App)
\ No newline at end of file +spawn_agents_around in game::sandbox::gameplay::freeform - Rust
pub fn spawn_agents_around(i: IntersectionID, app: &mut App)
\ No newline at end of file diff --git a/rustdoc/game/sandbox/gameplay/freeform/importers/fn.import_json_scenario.html b/rustdoc/game/sandbox/gameplay/freeform/importers/fn.import_json_scenario.html index 2684c287e0..244acc4bbb 100644 --- a/rustdoc/game/sandbox/gameplay/freeform/importers/fn.import_json_scenario.html +++ b/rustdoc/game/sandbox/gameplay/freeform/importers/fn.import_json_scenario.html @@ -1,5 +1,5 @@ import_json_scenario in game::sandbox::gameplay::freeform::importers - Rust
fn import_json_scenario(
-    map: &Map,
+    map: &Map,
     bytes: Vec<u8>,
     timer: &mut Timer<'_>
 ) -> Result<String>
\ No newline at end of file diff --git a/rustdoc/game/sandbox/gameplay/freeform/spawner/struct.AgentSpawner.html b/rustdoc/game/sandbox/gameplay/freeform/spawner/struct.AgentSpawner.html index 2ef10cc3e0..8d903d4723 100644 --- a/rustdoc/game/sandbox/gameplay/freeform/spawner/struct.AgentSpawner.html +++ b/rustdoc/game/sandbox/gameplay/freeform/spawner/struct.AgentSpawner.html @@ -6,7 +6,7 @@ }

Fields§

§panel: Panel§start: Option<(TripEndpoint, Pt2D)>§goal: Option<(TripEndpoint, Pt2D, bool, Option<Polygon>)>§confirmed: bool

Implementations§

source§

impl AgentSpawner

source

pub fn new_state( ctx: &mut EventCtx<'_>, app: &App, - start: Option<BuildingID> + start: Option<BuildingID> ) -> Box<dyn State<App>>

Trait Implementations§

source§

impl State<App> for AgentSpawner

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw(&self, g: &mut GfxCtx<'_>, app: &App)

Draw
§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving the State-specific state appropriately.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/rustdoc/game/sandbox/gameplay/tutorial/fn.make_bike_lane_scenario.html b/rustdoc/game/sandbox/gameplay/tutorial/fn.make_bike_lane_scenario.html index 808c8bc83c..6b4f954d62 100644 --- a/rustdoc/game/sandbox/gameplay/tutorial/fn.make_bike_lane_scenario.html +++ b/rustdoc/game/sandbox/gameplay/tutorial/fn.make_bike_lane_scenario.html @@ -1 +1 @@ -make_bike_lane_scenario in game::sandbox::gameplay::tutorial - Rust
fn make_bike_lane_scenario(map: &Map) -> ScenarioGenerator
\ No newline at end of file +make_bike_lane_scenario in game::sandbox::gameplay::tutorial - Rust
fn make_bike_lane_scenario(map: &Map) -> ScenarioGenerator
\ No newline at end of file diff --git a/rustdoc/game/sandbox/gameplay/tutorial/struct.TutorialState.html b/rustdoc/game/sandbox/gameplay/tutorial/struct.TutorialState.html index 3a373dbffa..5d19f3bb52 100644 --- a/rustdoc/game/sandbox/gameplay/tutorial/struct.TutorialState.html +++ b/rustdoc/game/sandbox/gameplay/tutorial/struct.TutorialState.html @@ -13,12 +13,12 @@ prank_done: bool, parking_found: bool, score_delivered: bool, - fire_station: BuildingID, -

}

Fields§

§stages: Vec<Stage>§current: TutorialPointer§window_dims: (f64, f64)§inspected_bike_lane: bool§inspected_building: bool§inspected_stop_sign: bool§inspected_border: bool§was_paused: bool§num_pauses: usize§following_car: bool§car_parked: bool§prank_done: bool§parking_found: bool§score_delivered: bool§fire_station: BuildingID

Implementations§

source§

impl TutorialState

source

fn reset_state(&mut self)

source

fn stage(&self) -> &Stage

source

fn interaction(&self) -> Task

source

fn message(&self) -> Option<&Message>

source

fn next(&mut self)

source

fn prev(&mut self)

source

fn make_top_right(&self, ctx: &mut EventCtx<'_>, edit_map: bool) -> Panel

source

fn make_state( + fire_station: BuildingID, +

}

Fields§

§stages: Vec<Stage>§current: TutorialPointer§window_dims: (f64, f64)§inspected_bike_lane: bool§inspected_building: bool§inspected_stop_sign: bool§inspected_border: bool§was_paused: bool§num_pauses: usize§following_car: bool§car_parked: bool§prank_done: bool§parking_found: bool§score_delivered: bool§fire_station: BuildingID

Implementations§

source§

impl TutorialState

source

fn reset_state(&mut self)

source

fn stage(&self) -> &Stage

source

fn interaction(&self) -> Task

source

fn message(&self) -> Option<&Message>

source

fn next(&mut self)

source

fn prev(&mut self)

source

fn make_top_right(&self, ctx: &mut EventCtx<'_>, edit_map: bool) -> Panel

source

fn make_state( &self, ctx: &mut EventCtx<'_>, app: &mut App -) -> Box<dyn GameplayState>

source

fn new(ctx: &mut EventCtx<'_>, app: &App) -> TutorialState

source

pub fn scenarios_to_prebake(map: &Map) -> Vec<ScenarioGenerator>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Box<dyn GameplayState>

source

fn new(ctx: &mut EventCtx<'_>, app: &App) -> TutorialState

source

pub fn scenarios_to_prebake(map: &Map) -> Vec<ScenarioGenerator>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere diff --git a/rustdoc/game/sandbox/misc_tools/struct.TrafficRecorder.html b/rustdoc/game/sandbox/misc_tools/struct.TrafficRecorder.html index a6af4705e1..e19da83eb8 100644 --- a/rustdoc/game/sandbox/misc_tools/struct.TrafficRecorder.html +++ b/rustdoc/game/sandbox/misc_tools/struct.TrafficRecorder.html @@ -1,9 +1,9 @@ TrafficRecorder in game::sandbox::misc_tools - Rust
pub struct TrafficRecorder {
-    members: BTreeSet<IntersectionID>,
+    members: BTreeSet<IntersectionID>,
     panel: Panel,
-}

Fields§

§members: BTreeSet<IntersectionID>§panel: Panel

Implementations§

source§

impl TrafficRecorder

source

pub fn new_state( +}

Fields§

§members: BTreeSet<IntersectionID>§panel: Panel

Implementations§

source§

impl TrafficRecorder

source

pub fn new_state( ctx: &mut EventCtx<'_>, - members: BTreeSet<IntersectionID> + members: BTreeSet<IntersectionID> ) -> Box<dyn State<App>>

Trait Implementations§

source§

impl State<App> for TrafficRecorder

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw(&self, g: &mut GfxCtx<'_>, app: &App)

Draw
§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving the State-specific state appropriately.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/rustdoc/game/sandbox/turn_explorer/struct.TurnExplorer.html b/rustdoc/game/sandbox/turn_explorer/struct.TurnExplorer.html index 1a98e99ac0..f404125b98 100644 --- a/rustdoc/game/sandbox/turn_explorer/struct.TurnExplorer.html +++ b/rustdoc/game/sandbox/turn_explorer/struct.TurnExplorer.html @@ -1,13 +1,13 @@ TurnExplorer in game::sandbox::turn_explorer - Rust
pub struct TurnExplorer {
-    l: LaneID,
+    l: LaneID,
     idx: usize,
     panel: Panel,
 }
Expand description

A tool to explore all of the turns from a single lane.

-

Fields§

§l: LaneID§idx: usize§panel: Panel

Implementations§

source§

impl TurnExplorer

source

pub fn new_state( +

Fields§

§l: LaneID§idx: usize§panel: Panel

Implementations§

source§

impl TurnExplorer

source

pub fn new_state( ctx: &mut EventCtx<'_>, app: &App, - l: LaneID -) -> Box<dyn State<App>>

source§

impl TurnExplorer

source

fn make_panel(ctx: &mut EventCtx<'_>, app: &App, l: LaneID, idx: usize) -> Panel

source

pub fn color_turn_type(t: TurnType) -> Color

Trait Implementations§

source§

impl State<App> for TurnExplorer

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
source§

fn draw(&self, g: &mut GfxCtx<'_>, app: &App)

Draw
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving + l: LaneID +) -> Box<dyn State<App>>

source§

impl TurnExplorer

source

fn make_panel(ctx: &mut EventCtx<'_>, app: &App, l: LaneID, idx: usize) -> Panel

source

pub fn color_turn_type(t: TurnType) -> Color

Trait Implementations§

source§

impl State<App> for TurnExplorer

source§

fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>

Respond to a UI event, such as input or time passing.
source§

fn draw_baselayer(&self) -> DrawBaselayer

Specifies what to draw before draw()
source§

fn draw(&self, g: &mut GfxCtx<'_>, app: &App)

Draw
§

fn on_destroy(&mut self, _: &mut EventCtx<'_>, _: &mut A)

Before this state is popped or replaced, call this.
§

fn recreate(&mut self, _: &mut EventCtx<'_>, _: &mut A) -> Box<dyn State<A>>

Respond to Transition::Recreate by assuming state in the app has changed, but preserving the State-specific state appropriately.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere diff --git a/rustdoc/game/ungap/bike_network/fn.is_greenway.html b/rustdoc/game/ungap/bike_network/fn.is_greenway.html index 7d5eb39ef5..d1afbcd93a 100644 --- a/rustdoc/game/ungap/bike_network/fn.is_greenway.html +++ b/rustdoc/game/ungap/bike_network/fn.is_greenway.html @@ -1 +1 @@ -is_greenway in game::ungap::bike_network - Rust
pub fn is_greenway(road: &Road) -> bool
\ No newline at end of file +is_greenway in game::ungap::bike_network - Rust
pub fn is_greenway(road: &Road) -> bool
\ No newline at end of file diff --git a/rustdoc/game/ungap/predict/struct.CandidateTrip.html b/rustdoc/game/ungap/predict/struct.CandidateTrip.html index 5747259c17..8851b66a93 100644 --- a/rustdoc/game/ungap/predict/struct.CandidateTrip.html +++ b/rustdoc/game/ungap/predict/struct.CandidateTrip.html @@ -1,9 +1,9 @@ CandidateTrip in game::ungap::predict - Rust
struct CandidateTrip {
-    bike_req: PathRequest,
+    bike_req: PathRequest,
     estimated_biking_time: Duration,
     driving_distance: Distance,
     total_elevation_gain: Distance,
-}

Fields§

§bike_req: PathRequest§estimated_biking_time: Duration§driving_distance: Distance§total_elevation_gain: Distance

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +}

Fields§

§bike_req: PathRequest§estimated_biking_time: Duration§driving_distance: Distance§total_elevation_gain: Distance

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere diff --git a/rustdoc/game/ungap/predict/struct.NetworkGaps.html b/rustdoc/game/ungap/predict/struct.NetworkGaps.html index 8ef6628e30..d3601bffa6 100644 --- a/rustdoc/game/ungap/predict/struct.NetworkGaps.html +++ b/rustdoc/game/ungap/predict/struct.NetworkGaps.html @@ -1,7 +1,7 @@ NetworkGaps in game::ungap::predict - Rust

Struct game::ungap::predict::NetworkGaps

source ·
struct NetworkGaps {
     draw: ToggleZoomed,
-    count_per_road: Counter<RoadID>,
-}

Fields§

§draw: ToggleZoomed§count_per_road: Counter<RoadID>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + count_per_road: Counter<RoadID>, +}

Fields§

§draw: ToggleZoomed§count_per_road: Counter<RoadID>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere diff --git a/rustdoc/game/ungap/quick_sketch/fn.make_quick_changes.html b/rustdoc/game/ungap/quick_sketch/fn.make_quick_changes.html index adb1a91861..48b5c54469 100644 --- a/rustdoc/game/ungap/quick_sketch/fn.make_quick_changes.html +++ b/rustdoc/game/ungap/quick_sketch/fn.make_quick_changes.html @@ -1,6 +1,6 @@ make_quick_changes in game::ungap::quick_sketch - Rust
fn make_quick_changes(
     ctx: &mut EventCtx<'_>,
     app: &mut App,
-    roads: Vec<RoadID>,
+    roads: Vec<RoadID>,
     buffer_type: Option<BufferType>
 ) -> Vec<String>
\ No newline at end of file diff --git a/rustdoc/game/ungap/trip/results/struct.RouteDetails.html b/rustdoc/game/ungap/trip/results/struct.RouteDetails.html index 75f089eac7..ac77387388 100644 --- a/rustdoc/game/ungap/trip/results/struct.RouteDetails.html +++ b/rustdoc/game/ungap/trip/results/struct.RouteDetails.html @@ -1,14 +1,14 @@ RouteDetails in game::ungap::trip::results - Rust
pub struct RouteDetails {
     pub preferences: RoutingPreferences,
     pub stats: RouteStats,
-    paths: Vec<(Path, Option<PolyLine>)>,
+    paths: Vec<(Path, Option<PolyLine>)>,
     closest_path_segment: FindClosest<usize>,
     hover_on_line_plot: Option<(Distance, Drawable)>,
     hover_on_route_tooltip: Option<Text>,
     draw_high_stress: Drawable,
     draw_traffic_signals: Drawable,
     draw_unprotected_turns: Drawable,
-}

Fields§

§preferences: RoutingPreferences§stats: RouteStats§paths: Vec<(Path, Option<PolyLine>)>§closest_path_segment: FindClosest<usize>§hover_on_line_plot: Option<(Distance, Drawable)>§hover_on_route_tooltip: Option<Text>§draw_high_stress: Drawable§draw_traffic_signals: Drawable§draw_unprotected_turns: Drawable

Implementations§

source§

impl RouteDetails

source

pub fn main_route( +}

Fields§

§preferences: RoutingPreferences§stats: RouteStats§paths: Vec<(Path, Option<PolyLine>)>§closest_path_segment: FindClosest<usize>§hover_on_line_plot: Option<(Distance, Drawable)>§hover_on_route_tooltip: Option<Text>§draw_high_stress: Drawable§draw_traffic_signals: Drawable§draw_unprotected_turns: Drawable

Implementations§

source§

impl RouteDetails

source

pub fn main_route( ctx: &mut EventCtx<'_>, app: &App, waypoints: Vec<TripEndpoint> diff --git a/rustdoc/game/ungap/trip/struct.RoutingPreferences.html b/rustdoc/game/ungap/trip/struct.RoutingPreferences.html index 5b30d18aa5..2b1ed6f54e 100644 --- a/rustdoc/game/ungap/trip/struct.RoutingPreferences.html +++ b/rustdoc/game/ungap/trip/struct.RoutingPreferences.html @@ -1,7 +1,7 @@ RoutingPreferences in game::ungap::trip - Rust
pub struct RoutingPreferences {
     avoid_hills: bool,
     avoid_stressful_roads: bool,
-}

Fields§

§avoid_hills: bool§avoid_stressful_roads: bool

Implementations§

source§

impl RoutingPreferences

source

pub fn default() -> Self

source

fn name(self) -> &'static str

source

fn routing_params(self) -> RoutingParams

Trait Implementations§

source§

impl Clone for RoutingPreferences

source§

fn clone(&self) -> RoutingPreferences

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl PartialEq for RoutingPreferences

source§

fn eq(&self, other: &RoutingPreferences) -> bool

This method tests for self and other values to be equal, and is used +}

Fields§

§avoid_hills: bool§avoid_stressful_roads: bool

Implementations§

source§

impl RoutingPreferences

source

pub fn default() -> Self

source

fn name(self) -> &'static str

source

fn routing_params(self) -> RoutingParams

Trait Implementations§

source§

impl Clone for RoutingPreferences

source§

fn clone(&self) -> RoutingPreferences

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl PartialEq for RoutingPreferences

source§

fn eq(&self, other: &RoutingPreferences) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for RoutingPreferences

source§

impl StructuralPartialEq for RoutingPreferences

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/rustdoc/kml/fn.load.html b/rustdoc/kml/fn.load.html index b48f606894..a31abb540b 100644 --- a/rustdoc/kml/fn.load.html +++ b/rustdoc/kml/fn.load.html @@ -2,7 +2,7 @@ path: String, gps_bounds: &GPSBounds, require_all_pts_in_bounds: bool, - timer: &mut Timer<'_> + timer: &mut Timer<'_> ) -> Result<ExtraShapes>
Expand description

Parses a .kml file and returns ExtraShapes. Objects will be clipped to the given gps_bounds. If require_all_pts_in_bounds is true, objects that’re partly out-of-bounds will be skipped.

\ No newline at end of file diff --git a/rustdoc/kml/struct.ExtraShapes.html b/rustdoc/kml/struct.ExtraShapes.html index de873e30f4..4b232af2ee 100644 --- a/rustdoc/kml/struct.ExtraShapes.html +++ b/rustdoc/kml/struct.ExtraShapes.html @@ -5,7 +5,7 @@ this format and serializing is faster than parsing the original again.

Fields§

§shapes: Vec<ExtraShape>

Implementations§

source§

impl ExtraShapes

source

pub fn load_csv( path: String, gps_bounds: &GPSBounds, - timer: &mut Timer<'_> + timer: &mut Timer<'_> ) -> Result<ExtraShapes>

Parses a .csv file and returns ExtraShapes. Each record must EITHER have a column called ‘Longitude’ and ‘Latitude’, representing a single point, OR a column called ‘geometry’ with a WKT-style linestring. All other columns will just be attributes. Objects that’re partly diff --git a/rustdoc/map_gui/tools/title_screen/built_info/constant.BUILT_TIME_UTC.html b/rustdoc/map_gui/tools/title_screen/built_info/constant.BUILT_TIME_UTC.html index 9c4e234264..1ed3c897f7 100644 --- a/rustdoc/map_gui/tools/title_screen/built_info/constant.BUILT_TIME_UTC.html +++ b/rustdoc/map_gui/tools/title_screen/built_info/constant.BUILT_TIME_UTC.html @@ -1,2 +1,2 @@ -BUILT_TIME_UTC in map_gui::tools::title_screen::built_info - Rust

pub const BUILT_TIME_UTC: &str = r"Tue, 9 Jan 2024 22:14:00 +0000";
Expand description

The build time in RFC2822, UTC.

+BUILT_TIME_UTC in map_gui::tools::title_screen::built_info - Rust
pub const BUILT_TIME_UTC: &str = r"Fri, 12 Jan 2024 14:01:23 +0000";
Expand description

The build time in RFC2822, UTC.

\ No newline at end of file diff --git a/rustdoc/src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-25ee87e30a98432c/out/built.rs.html b/rustdoc/src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-25ee87e30a98432c/out/built.rs.html index ebabada475..9959fed1ad 100644 --- a/rustdoc/src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-25ee87e30a98432c/out/built.rs.html +++ b/rustdoc/src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-25ee87e30a98432c/out/built.rs.html @@ -204,7 +204,7 @@ pub const CFG_POINTER_WIDTH: &str = r"64"; #[doc=r#"The build time in RFC2822, UTC."#] #[allow(dead_code)] -pub const BUILT_TIME_UTC: &str = r"Tue, 9 Jan 2024 22:14:00 +0000"; +pub const BUILT_TIME_UTC: &str = r"Fri, 12 Jan 2024 14:01:23 +0000"; // // EVERYTHING ABOVE THIS POINT WAS AUTO-GENERATED DURING COMPILATION. DO NOT MODIFY. // diff --git a/rustdoc/trait.impl/abstutil/clone/trait.CloneableAny.js b/rustdoc/trait.impl/abstutil/clone/trait.CloneableAny.js index 5ea6ae68da..926fbf5bea 100644 --- a/rustdoc/trait.impl/abstutil/clone/trait.CloneableAny.js +++ b/rustdoc/trait.impl/abstutil/clone/trait.CloneableAny.js @@ -1,5 +1,5 @@ (function() {var implementors = { -"abstio":[["impl CloneableAny for MapName"]], +"abstio":[["impl CloneableAny for MapName"]], "abstutil":[], "sim":[["impl CloneableAny for TripID"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file