Constant game::pregame::built_info::BUILT_TIME_UTC [−][src]
pub const BUILT_TIME_UTC: &str = r"Sat, 18 Sep 2021 01:38:25 +0000";
Expand description
The build time in RFC2822, UTC.
+Constant game::pregame::built_info::BUILT_TIME_UTC [−][src]
pub const BUILT_TIME_UTC: &str = r"Sat, 18 Sep 2021 01:40:15 +0000";
Expand description
The build time in RFC2822, UTC.
Module game::ungap::route [−][src]
Structs
+Module game::ungap::route [−][src]
Structs
Save sequences of waypoints as named routes. Basic file management – save, load, browse. This is useful to define “test cases,” then edit the bike network and “run the tests” to compare results.
diff --git a/rustdoc/game/ungap/route/struct.NamedRoute.html b/rustdoc/game/ungap/route/struct.NamedRoute.html index 005f900110..b0a5b6fc8e 100644 --- a/rustdoc/game/ungap/route/struct.NamedRoute.html +++ b/rustdoc/game/ungap/route/struct.NamedRoute.html @@ -1,14 +1,14 @@ -Struct game::ungap::route::NamedRoute [−][src]
struct NamedRoute { +NamedRoute in game::ungap::route - Rust Struct game::
ungap:: [−][src]route:: NamedRoute struct NamedRoute { name: String, waypoints: Vec<TripEndpoint>, -}Fields
name: String
waypoints: Vec<TripEndpoint>
Trait Implementations
Returns a copy of the value. Read more
+}Fields
name: String
waypoints: Vec<TripEndpoint>
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read more
-This method tests for
self
andother
values to be equal, and is used +
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read more
+This method tests for
-self
andother
values to be equal, and is used by==
. Read moreThis method tests for
-!=
.Auto Trait Implementations
impl RefUnwindSafe for NamedRoute
impl Send for NamedRoute
impl Sync for NamedRoute
impl Unpin for NamedRoute
impl UnwindSafe for NamedRoute
Blanket Implementations
Auto Trait Implementations
impl RefUnwindSafe for NamedRoute
impl Send for NamedRoute
impl Sync for NamedRoute
impl Unpin for NamedRoute
impl UnwindSafe for NamedRoute
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,Convert
Box<dyn Trait>
(whereTrait: Downcast
) toBox<dyn Any>
.Box<dyn Any>
can diff --git a/rustdoc/game/ungap/route/struct.RenameEdits.html b/rustdoc/game/ungap/route/struct.RenameEdits.html index fecde1d295..93d41dc6c0 100644 --- a/rustdoc/game/ungap/route/struct.RenameEdits.html +++ b/rustdoc/game/ungap/route/struct.RenameEdits.html @@ -1,11 +1,11 @@ -RenameEdits in game::ungap::route - Rust Struct game::
ungap:: [−][src]route:: RenameEdits struct RenameEdits { +RenameEdits in game::ungap::route - Rust Struct game::
ungap:: [−][src]route:: RenameEdits Fields
current_name: String
all_names: HashSet<String>
Implementations
fn new_state(
ctx: &mut EventCtx<'_>,
current: &NamedRoute,
all: &SavedRoutes
) -> Box<dyn State<App>>Trait Implementations
Called when something on the panel has been clicked. Since the action is just a string, +}
Fields
current_name: String
all_names: HashSet<String>
Implementations
fn new_state(
ctx: &mut EventCtx<'_>,
current: &NamedRoute,
all: &SavedRoutes
) -> Box<dyn State<App>>Trait Implementations
Called when something on the panel has been clicked. Since the action is just a string, the fallback case can just use
-unreachable!()
. Read more
fn panel_changed(
&mut self,
ctx: &mut EventCtx<'_>,
_: &mut App,
panel: &mut Panel
) -> Option<Transition<App>>Called when something on the panel has changed. If a transition is returned, stop handling +
fn panel_changed(
&mut self,
ctx: &mut EventCtx<'_>,
_: &mut App,
panel: &mut Panel
) -> Option<Transition<App>>Called when something on the panel has changed. If a transition is returned, stop handling the event and immediately apply the transition. Read more
-
fn on_click_custom(
&mut self,
_ctx: &mut EventCtx<'_>,
_app: &mut A,
_action: Box<dyn CloneableAny + 'static, Global>,
_panel: &Panel
) -> Transition<A>Called when something on the panel has been clicked.
+
fn on_click_custom(
&mut self,
_ctx: &mut EventCtx<'_>,
_app: &mut A,
_action: Box<dyn CloneableAny + 'static, Global>,
_panel: &Panel
) -> Transition<A>Called when something on the panel has been clicked.
fn on_mouseover(&mut self, &mut EventCtx<'_>, &mut A)
Called when the mouse has moved.
fn other_event(&mut self, &mut EventCtx<'_>, &mut A) -> Transition<A>
If a panel
diff --git a/rustdoc/game/ungap/route/struct.RouteManagement.html b/rustdoc/game/ungap/route/struct.RouteManagement.html index 4cfb61db1f..f0312398a7 100644 --- a/rustdoc/game/ungap/route/struct.RouteManagement.html +++ b/rustdoc/game/ungap/route/struct.RouteManagement.html @@ -1,10 +1,10 @@ -on_click
event didn’t occur andpanel_changed
didn’t return transition, then call this to handle all other events. Read moreRouteManagement in game::ungap::route - Rust Struct game::
ungap:: [−][src]route:: RouteManagement struct RouteManagement { +RouteManagement in game::ungap::route - Rust Struct game::
ungap:: [−][src]route:: RouteManagement struct RouteManagement { current: NamedRoute, all: SavedRoutes, }Expand description
Save sequences of waypoints as named routes. Basic file management – save, load, browse. This is useful to define “test cases,” then edit the bike network and “run the tests” to compare results.
-Fields
current: NamedRoute
all: SavedRoutes
Implementations
Auto Trait Implementations
impl RefUnwindSafe for RouteManagement
impl Send for RouteManagement
impl Sync for RouteManagement
impl Unpin for RouteManagement
impl UnwindSafe for RouteManagement
Blanket Implementations
Fields
current: NamedRoute
all: SavedRoutes
Implementations
Auto Trait Implementations
impl RefUnwindSafe for RouteManagement
impl Send for RouteManagement
impl Sync for RouteManagement
impl Unpin for RouteManagement
impl UnwindSafe for RouteManagement
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,Convert
Box<dyn Trait>
(whereTrait: Downcast
) toBox<dyn Any>
.Box<dyn Any>
can diff --git a/rustdoc/game/ungap/route/struct.RouteResults.html b/rustdoc/game/ungap/route/struct.RouteResults.html index ccfc670212..a3ed383b75 100644 --- a/rustdoc/game/ungap/route/struct.RouteResults.html +++ b/rustdoc/game/ungap/route/struct.RouteResults.html @@ -9,7 +9,7 @@ draw_traffic_signals: Drawable, draw_unprotected_turns: Drawable, panel: Panel, -}Fields
paths: Vec<(Path, Option<PolyLine>)>
closest_path_segment: FindClosest<usize>
hover_on_line_plot: Option<(Distance, Drawable)>
hover_on_route_tooltip: Option<Text>
draw_route_unzoomed: Drawable
draw_route_zoomed: Drawable
draw_high_stress: Drawable
draw_traffic_signals: Drawable
draw_unprotected_turns: Drawable
panel: Panel
Implementations
Auto Trait Implementations
impl !RefUnwindSafe for RouteResults
impl !Send for RouteResults
impl !Sync for RouteResults
impl Unpin for RouteResults
impl !UnwindSafe for RouteResults
Blanket Implementations
Gets the
+}TypeId
ofself
. Read moreFields
paths: Vec<(Path, Option<PolyLine>)>
closest_path_segment: FindClosest<usize>
hover_on_line_plot: Option<(Distance, Drawable)>
hover_on_route_tooltip: Option<Text>
draw_route_unzoomed: Drawable
draw_route_zoomed: Drawable
draw_high_stress: Drawable
draw_traffic_signals: Drawable
draw_unprotected_turns: Drawable
panel: Panel
Implementations
Auto Trait Implementations
impl !RefUnwindSafe for RouteResults
impl !Send for RouteResults
impl !Sync for RouteResults
impl Unpin for RouteResults
impl !UnwindSafe for RouteResults
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,Convert
Box<dyn Trait>
(whereTrait: Downcast
) toBox<dyn Any>
.Box<dyn Any>
can diff --git a/rustdoc/game/ungap/route/struct.SavedRoutes.html b/rustdoc/game/ungap/route/struct.SavedRoutes.html index 31a59a2f14..5272dab1b2 100644 --- a/rustdoc/game/ungap/route/struct.SavedRoutes.html +++ b/rustdoc/game/ungap/route/struct.SavedRoutes.html @@ -1,7 +1,7 @@ -SavedRoutes in game::ungap::route - Rust Struct game::
ungap:: [−][src]route:: SavedRoutes struct SavedRoutes { +SavedRoutes in game::ungap::route - Rust Struct game::
ungap:: [−][src]route:: SavedRoutes struct SavedRoutes { routes: BTreeMap<String, NamedRoute>, -}Fields
routes: BTreeMap<String, NamedRoute>
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read more
-Serialize this value into the given Serde serializer. Read more
+}Fields
routes: BTreeMap<String, NamedRoute>
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read more
+Auto Trait Implementations
impl RefUnwindSafe for SavedRoutes
impl Send for SavedRoutes
impl Sync for SavedRoutes
impl Unpin for SavedRoutes
impl UnwindSafe for SavedRoutes
Blanket Implementations
Mutably borrows from an owned value. Read more
diff --git a/rustdoc/src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-0716a03cc01a18cb/out/built.rs.html b/rustdoc/src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-0716a03cc01a18cb/out/built.rs.html index 1a68650dd1..4dabc1e73b 100644 --- a/rustdoc/src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-0716a03cc01a18cb/out/built.rs.html +++ b/rustdoc/src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-0716a03cc01a18cb/out/built.rs.html @@ -175,7 +175,7 @@ pub const RUSTDOC_VERSION: &str = r"rustdoc 1.55.0 (c8dfcfe04 2021-09-06)"; #[doc=r#"The build time in RFC2822, UTC."#] #[allow(dead_code)] -pub const BUILT_TIME_UTC: &str = r"Sat, 18 Sep 2021 01:38:25 +0000"; +pub const BUILT_TIME_UTC: &str = r"Sat, 18 Sep 2021 01:40:15 +0000"; #[doc=r#"The target architecture, given by `CARGO_CFG_TARGET_ARCH`."#] #[allow(dead_code)] pub const CFG_TARGET_ARCH: &str = r"x86_64"; diff --git a/rustdoc/src/game/ungap/route.rs.html b/rustdoc/src/game/ungap/route.rs.html index 4945b8302a..71018ced35 100644 --- a/rustdoc/src/game/ungap/route.rs.html +++ b/rustdoc/src/game/ungap/route.rs.html @@ -777,7 +777,6 @@ 777 778 779 -780use std::collections::{BTreeMap, HashSet}; @@ -1148,8 +1147,8 @@ } fn event(&mut self, ctx: &mut EventCtx, app: &App) -> Option<Transition> { - match self.panel.event(ctx) { - Outcome::Clicked(x) => match x.as_ref() { + if let Outcome::Clicked(x) = self.panel.event(ctx) { + match x.as_ref() { "high-stress roads" => { return Some(Transition::Push(PopupMsg::new_state( ctx, @@ -1166,8 +1165,7 @@ "traffic signals" => {} "unprotected turns" => {} _ => unreachable!(), - }, - _ => {} + } } let current_dist_along = self diff --git a/rustdoc/src/map_editor/app.rs.html b/rustdoc/src/map_editor/app.rs.html index aaea40b440..d64f298908 100644 --- a/rustdoc/src/map_editor/app.rs.html +++ b/rustdoc/src/map_editor/app.rs.html @@ -1006,7 +1006,7 @@ app.model.map.save(); } "reload" => { - CameraState::save(&ctx.canvas, &app.model.map.name); + CameraState::save(ctx.canvas, &app.model.map.name); return Transition::Push(crate::load::load_map( ctx, abstio::path_raw_map(&app.model.map.name), @@ -1015,7 +1015,7 @@ )); } "open another RawMap" => { - CameraState::save(&ctx.canvas, &app.model.map.name); + CameraState::save(ctx.canvas, &app.model.map.name); return Transition::Push(crate::load::PickMap::new_state(ctx)); } _ => unreachable!(),