Trait apparat::TransitionFrom [−][src]
pub trait TransitionFrom<FromState: ApparatState> { fn transition_from(
prev: FromState,
_ctx: &mut <<FromState as ApparatState>::Wrapper as ApparatWrapper>::Context
) -> Self; }
Expand description
Define transitions between states. These transition functions can access the shared context/data mutably.
Required methods
fn transition_from(
prev: FromState,
_ctx: &mut <<FromState as ApparatState>::Wrapper as ApparatWrapper>::Context
) -> Self
[src]
fn transition_from(
prev: FromState,
_ctx: &mut <<FromState as ApparatState>::Wrapper as ApparatWrapper>::Context
) -> Self
[src]