We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In GitLab by @azriel91 on Mar 26, 2019, 15:22
Currently impl State for MyState is written as:
impl State for MyState
For states that are not aliases to AppState:
AppState
impl<'a, 'b, S> State<GameData<'a, 'b>, AppEvent> for LoadingState<'a, 'b, S>
For states that are aliases to AppState:
pub type CharacterSelectionState<'a, 'b, F, S> = AppState<'a, 'b, CharacterSelectionStateDelegate<'a, 'b, F, S>, CharacterSelectionEntityId>; impl<'a, 'b, F, S> State<GameData<'a, 'b>, AppEvent> for CharacterSelectionStateDelegate<'a, 'b, F, S>
This is very verbose. Also, we have this:
pub trait AutexState<'a, 'b>: State<GameData<'a, 'b>, AppEvent> {} // Blanket impl. impl<'a, 'b, T> AutexState<'a, 'b> for T where T: State<GameData<'a, 'b>, AppEvent> {}
To make it ergonomic to implement states, it would be much better if that could change to:
impl<S> State for LoadingState<S>
This possibly means all states having the behaviour of the current AppState.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In GitLab by @azriel91 on Mar 26, 2019, 15:22
Currently
impl State for MyState
is written as:For states that are not aliases to
AppState
:For states that are aliases to
AppState
:This is very verbose. Also, we have this:
To make it ergonomic to implement states, it would be much better if that could change to:
This possibly means all states having the behaviour of the current
AppState
.The text was updated successfully, but these errors were encountered: