pub fn into_general(self) -> TransitionResult<Sm, Sm::State> {
        match self {
            TransitionResult::InvalidTransition => TransitionResult::InvalidTransition,
            TransitionResult::Ok {
                commands,
                new_state,
                shared_state,
            } => TransitionResult::Ok {
                commands,
                new_state: new_state.into(),
                shared_state,
            },
            TransitionResult::OkNoShare {
                commands,
                new_state,
            } => TransitionResult::OkNoShare {
                commands,
                new_state: new_state.into(),
            },
            TransitionResult::Err(e) => TransitionResult::Err(e),
        }
    }
/// Turns more-specific (struct) transition result into more-general (enum) transition result
Turns more-specific (struct) transition result into more-general (enum) transition result
Turns more - specific ( struct ) transition result into more - general ( enum ) transition result
pub fn into_general(self) -> TransitionResult<Sm, Sm::State> {
        match self {
            TransitionResult::InvalidTransition => TransitionResult::InvalidTransition,
            TransitionResult::Ok {
                commands,
                new_state,
                shared_state,
            } => TransitionResult::Ok {
                commands,
                new_state: new_state.into(),
                shared_state,
            },
            TransitionResult::OkNoShare {
                commands,
                new_state,
            } => TransitionResult::OkNoShare {
                commands,
                new_state: new_state.into(),
            },
            TransitionResult::Err(e) => TransitionResult::Err(e),
        }
    }
pub fn into_general ( self ) -> TransitionResult < Sm , Sm :: State > { match self { TransitionResult :: InvalidTransition => TransitionResult :: InvalidTransition , TransitionResult :: Ok { commands , new_state , shared_state , } => TransitionResult :: Ok { commands , new_state : new_state . into ( ) , shared_state , } , TransitionResult :: OkNoShare { commands , new_state , } => TransitionResult :: OkNoShare { commands , new_state : new_state . into ( ) , } , TransitionResult :: Err ( e ) => TransitionResult :: Err ( e ) , } }
Turns more-specific (struct) transition result into more-general (enum) transition result
Turns more - specific ( struct ) transition result into more - general ( enum ) transition result
self
self