Function fifteen_min::find_amenities::create_border_isochrone [−][src]
fn create_border_isochrone(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
options: Options
) -> BorderIsochrone
Expand description
Draw an isochrone from every intersection border
+Function fifteen_min::find_amenities::create_border_isochrone [−][src]
fn create_border_isochrone(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
options: Options
) -> BorderIsochrone
Expand description
Draw an isochrone from every intersection border
Function fifteen_min::find_amenities::create_multi_isochrone [−][src]
fn create_multi_isochrone(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
category: AmenityType,
options: Options
) -> Isochrone
Expand description
For every one of the requested amenity on the map, draw an isochrone
+Function fifteen_min::find_amenities::create_multi_isochrone [−][src]
fn create_multi_isochrone(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
category: AmenityType,
options: Options
) -> Isochrone
Expand description
For every one of the requested amenity on the map, draw an isochrone
Struct fifteen_min::find_amenities::FindAmenity [−][src]
pub struct FindAmenity;
Expand description
Calculate isochrones around each amenity on a map and merge them together using the min value
-Implementations
Auto Trait Implementations
impl RefUnwindSafe for FindAmenity
impl Send for FindAmenity
impl Sync for FindAmenity
impl Unpin for FindAmenity
impl UnwindSafe for FindAmenity
Blanket Implementations
Implementations
Auto Trait Implementations
impl RefUnwindSafe for FindAmenity
impl Send for FindAmenity
impl Sync for FindAmenity
impl Unpin for FindAmenity
impl UnwindSafe for FindAmenity
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
diff --git a/rustdoc/fifteen_min/find_amenities/struct.Results.html b/rustdoc/fifteen_min/find_amenities/struct.Results.html
index 5d5f56504a..7da000b2c5 100644
--- a/rustdoc/fifteen_min/find_amenities/struct.Results.html
+++ b/rustdoc/fifteen_min/find_amenities/struct.Results.html
@@ -5,11 +5,11 @@
isochrone: Isochrone,
hovering_on_bldg: Cached<(BuildingID, f64), HoverOnBuilding>,
}
- Fields
draw: Drawable
isochrone: Isochrone
hovering_on_bldg: Cached<(BuildingID, f64), HoverOnBuilding>
Implementations
fn new_state(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
isochrone: Isochrone,
border_isochrone: BorderIsochrone,
category: AmenityType
) -> Box<dyn State<SimpleApp<()>>>
[src]Trait Implementations
Called when something on the panel has been clicked. Since the action is just a string,
+ Fieldsdraw: Drawable
isochrone: Isochrone
hovering_on_bldg: Cached<(BuildingID, f64), HoverOnBuilding>
Implementations
fn new_state(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
isochrone: Isochrone,
border_isochrone: BorderIsochrone,
category: AmenityType
) -> Box<dyn State<SimpleApp<()>>>
[src]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
If a panel on_click
event didn’t occur and panel_changed
didn’t return transition, then
+
fn other_event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut SimpleApp<()>
) -> Transition<SimpleApp<()>>
[src]
fn other_event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut SimpleApp<()>
) -> Transition<SimpleApp<()>>
[src]If a panel on_click
event didn’t occur and panel_changed
didn’t return transition, then
call this to handle all other events. Read more
fn on_click_custom(
&mut self,
_ctx: &mut EventCtx<'_>,
_app: &mut A,
_action: Box<dyn CloneableAny + 'static, Global>,
_panel: &Panel
) -> Transition<A>
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>
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 panel_changed(
&mut self,
&mut EventCtx<'_>,
&mut A,
&mut Panel
) -> Option<Transition<A>>
fn panel_changed(
&mut self,
&mut EventCtx<'_>,
&mut A,
&mut Panel
) -> Option<Transition<A>>
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_mouseover(&mut self, &mut EventCtx<'_>, &mut A)
fn on_mouseover(&mut self, &mut EventCtx<'_>, &mut A)
Called when the mouse has moved.
diff --git a/rustdoc/fifteen_min/find_home/fn.score_houses.html b/rustdoc/fifteen_min/find_home/fn.score_houses.html index 8bbe8ff99d..4d3808bf5a 100644 --- a/rustdoc/fifteen_min/find_home/fn.score_houses.html +++ b/rustdoc/fifteen_min/find_home/fn.score_houses.html @@ -1,5 +1,5 @@Function fifteen_min::find_home::score_houses [−][src]
fn score_houses(
app: &SimpleApp<()>,
amenities: Vec<AmenityType>,
options: Options,
timer: &mut Timer<'_>
) -> HashMap<BuildingID, Percent>
Expand description
For every house in the map, return the percent of amenities located within a 15min walkshed. A +
Function fifteen_min::find_home::score_houses [−][src]
fn score_houses(
app: &SimpleApp<()>,
amenities: Vec<AmenityType>,
options: Options,
timer: &mut Timer<'_>
) -> HashMap<BuildingID, Percent>
Expand description
For every house in the map, return the percent of amenities located within a 15min walkshed. A single matching business per category is enough to count as satisfied.
Expand description
Ask what types of amenities are necessary to be within a walkshed, then rank every house with how many of those needs are satisfied.
- Fields
options: Options
Implementations
Trait Implementations
Called when something on the panel has been clicked. Since the action is just a string,
+ Fieldsoptions: Options
Implementations
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 on_click_custom(
&mut self,
_ctx: &mut EventCtx<'_>,
_app: &mut A,
_action: Box<dyn CloneableAny + 'static, Global>,
_panel: &Panel
) -> Transition<A>
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 panel_changed(
&mut self,
&mut EventCtx<'_>,
&mut A,
&mut Panel
) -> Option<Transition<A>>
fn panel_changed(
&mut self,
&mut EventCtx<'_>,
&mut A,
&mut Panel
) -> Option<Transition<A>>
Called when something on the panel has changed. If a transition is returned, stop handling diff --git a/rustdoc/fifteen_min/find_home/struct.Results.html b/rustdoc/fifteen_min/find_home/struct.Results.html index 75b2e41ac5..ead174e319 100644 --- a/rustdoc/fifteen_min/find_home/struct.Results.html +++ b/rustdoc/fifteen_min/find_home/struct.Results.html @@ -3,11 +3,11 @@
Struct fifteen_min::find_home::Results [−][src]
struct Results { draw_houses: Drawable, }
- Fields
draw_houses: Drawable
Implementations
Trait Implementations
Called when something on the panel has been clicked. Since the action is just a string,
+ Fieldsdraw_houses: Drawable
Implementations
fn new_state(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
scores: HashMap<BuildingID, Percent>,
amenities: Vec<AmenityType>
) -> Box<dyn State<SimpleApp<()>>>
[src]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
If a panel on_click
event didn’t occur and panel_changed
didn’t return transition, then
+
fn other_event(
&mut self,
ctx: &mut EventCtx<'_>,
_: &mut SimpleApp<()>
) -> Transition<SimpleApp<()>>
[src]
fn other_event(
&mut self,
ctx: &mut EventCtx<'_>,
_: &mut SimpleApp<()>
) -> Transition<SimpleApp<()>>
[src]If a panel on_click
event didn’t occur and panel_changed
didn’t return transition, then
call this to handle all other events. Read more
fn on_click_custom(
&mut self,
_ctx: &mut EventCtx<'_>,
_app: &mut A,
_action: Box<dyn CloneableAny + 'static, Global>,
_panel: &Panel
) -> Transition<A>
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>
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 panel_changed(
&mut self,
&mut EventCtx<'_>,
&mut A,
&mut Panel
) -> Option<Transition<A>>
fn panel_changed(
&mut self,
&mut EventCtx<'_>,
&mut A,
&mut Panel
) -> Option<Transition<A>>
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_mouseover(&mut self, &mut EventCtx<'_>, &mut A)
fn on_mouseover(&mut self, &mut EventCtx<'_>, &mut A)
Called when the mouse has moved.
diff --git a/rustdoc/fifteen_min/isochrone/struct.BorderIsochrone.html b/rustdoc/fifteen_min/isochrone/struct.BorderIsochrone.html index f7ce38e69a..e00961def9 100644 --- a/rustdoc/fifteen_min/isochrone/struct.BorderIsochrone.html +++ b/rustdoc/fifteen_min/isochrone/struct.BorderIsochrone.html @@ -15,7 +15,7 @@thresholds: Vec<f64>
Thresholds used to draw the isochrone
colors: Vec<Color>
Colors used to draw the isochrone
time_to_reach_building: HashMap<BuildingID, Duration>
How far away is each building from the start?
-Implementations
pub fn new(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
start: Vec<IntersectionID>,
options: Options
) -> BorderIsochrone
[src]Auto Trait Implementations
impl !RefUnwindSafe for BorderIsochrone
impl !Send for BorderIsochrone
impl !Sync for BorderIsochrone
impl Unpin for BorderIsochrone
impl UnwindSafe for BorderIsochrone
Blanket Implementations
Gets the TypeId
of self
. Read more
Implementations
pub fn new(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
start: Vec<IntersectionID>,
options: Options
) -> BorderIsochrone
[src]Auto Trait Implementations
impl !RefUnwindSafe for BorderIsochrone
impl !Send for BorderIsochrone
impl !Sync for BorderIsochrone
impl Unpin for BorderIsochrone
impl UnwindSafe for BorderIsochrone
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
diff --git a/rustdoc/fifteen_min/isochrone/struct.Isochrone.html b/rustdoc/fifteen_min/isochrone/struct.Isochrone.html
index 2f25862362..e216561c18 100644
--- a/rustdoc/fifteen_min/isochrone/struct.Isochrone.html
+++ b/rustdoc/fifteen_min/isochrone/struct.Isochrone.html
@@ -22,7 +22,7 @@
population: usize
How many people live in the returned area, according to estimates included in the map (from city-specific parcel data, guesses from census, or a guess based on OSM tags)
onstreet_parking_spots: usize
How many sreet parking spots are on the same road as any buildings returned.
-Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Isochrone
impl UnwindSafe for Isochrone
Blanket Implementations
Gets the TypeId
of self
. Read more
Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Isochrone
impl UnwindSafe for Isochrone
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
diff --git a/rustdoc/fifteen_min/type.App.html b/rustdoc/fifteen_min/type.App.html
index 43261b3069..9aa145978e 100644
--- a/rustdoc/fifteen_min/type.App.html
+++ b/rustdoc/fifteen_min/type.App.html
@@ -1,3 +1,3 @@
Type Definition fifteen_min::App [−][src]
type App = SimpleApp<()>;
Type Definition fifteen_min::App [−][src]
type App = SimpleApp<()>;
Function fifteen_min::viewer::build_panel [−][src]
fn build_panel(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
start: &Building,
isochrone: &Isochrone
) -> Panel
Function fifteen_min::viewer::build_panel [−][src]
fn build_panel(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
start: &Building,
isochrone: &Isochrone
) -> Panel