Struct game::debug::path_counter::PathCounter [−][src]
pub struct PathCounter { panel: Panel, unzoomed: Drawable, zoomed: Drawable, cnt: Counter<RoadID>, tooltip: Option<Text>, }
A state to count the number of trips that will cross different roads.
Fields
panel: Panel
unzoomed: Drawable
zoomed: Drawable
cnt: Counter<RoadID>
tooltip: Option<Text>
Implementations
impl PathCounter
[src]
impl PathCounter
[src]pub fn demand_across_intersection(
ctx: &mut EventCtx<'_>,
app: &App,
i: IntersectionID
) -> Box<dyn State<App>>
[src]
ctx: &mut EventCtx<'_>,
app: &App,
i: IntersectionID
) -> Box<dyn State<App>>
Trait Implementations
impl State<App> for PathCounter
[src]
impl State<App> for PathCounter
[src]fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
pub fn draw_baselayer(&self) -> DrawBaselayer
pub fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
Auto Trait Implementations
impl !RefUnwindSafe for PathCounter
impl !Send for PathCounter
impl !Sync for PathCounter
impl Unpin for PathCounter
impl !UnwindSafe for PathCounter
Blanket Implementations
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,