pub struct Game {
pub secret: Secret,
pub lifes: u8,
pub last_guess: char,
pub state: State,
pub last_game: bool,
}
Expand description
The game state.
Fields§
§secret: Secret
§lifes: u8
§last_guess: char
§state: State
§last_game: bool
Implementations§
Trait Implementations§
impl StructuralPartialEq for Game
Auto Trait Implementations§
impl Freeze for Game
impl RefUnwindSafe for Game
impl Send for Game
impl Sync for Game
impl Unpin for Game
impl UnwindSafe for Game
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