enum MenuFlow {
StayOnMainScreen,
StartGame,
QuitGame,
}Expand description
The control part of the main menu
allows switching to a submenu (Fruits, Speed, Parameters, etc.)
Use MainMenuInput to known which keys have been used
and GreetingSimpleDisplay to display an easy menu, without input control (all except run and parameters)
Return true if the player wants to play, false otherwise
§Panics
if Terminal writing is not possible
Variants§
Auto Trait Implementations§
impl Freeze for MenuFlow
impl RefUnwindSafe for MenuFlow
impl Send for MenuFlow
impl Sync for MenuFlow
impl Unpin for MenuFlow
impl UnwindSafe for MenuFlow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more