Trait apparat::TransitionTo [−][src]
pub trait TransitionTo<Context>: Sized + ApparatState { fn transition<Next>(
self,
ctx: &mut <Self::Wrapper as ApparatWrapper>::Context
) -> Next
where
Next: ApparatState<Wrapper = Self::Wrapper> + TransitionFrom<Self>, { ... } }
Expand description
Similar to Into
in std, this is mostly for convenience and should not get
implemented manually. Implement TransitionFrom
instead and use
TransitionInto
in trait bounds, when needed.
Provided methods
fn transition<Next>(
self,
ctx: &mut <Self::Wrapper as ApparatWrapper>::Context
) -> Next where
Next: ApparatState<Wrapper = Self::Wrapper> + TransitionFrom<Self>,
[src]
fn transition<Next>(
self,
ctx: &mut <Self::Wrapper as ApparatWrapper>::Context
) -> Next where
Next: ApparatState<Wrapper = Self::Wrapper> + TransitionFrom<Self>,
[src]