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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".