pub trait CanTransitionTo<Next> {
type Output;
// Required method
fn transition_to(self) -> Self::Output;
}Expand description
A machine that can transition directly to Next.
This is the stable trait-level view of self.transition().
Required Associated Types§
Required Methods§
Sourcefn transition_to(self) -> Self::Output
fn transition_to(self) -> Self::Output
Perform the transition.