#[repr(u8)]pub enum GameMode {
Survival = 0,
Creative = 1,
Adventure = 2,
Spectator = 3,
}Expand description
An enum of the possible difficulties
Variants§
Survival = 0
Gamemode survival
Creative = 1
Gamemode creative
Adventure = 2
Gamemode adventure
Spectator = 3
Gamemode spectator
Auto Trait Implementations§
impl Freeze for GameMode
impl RefUnwindSafe for GameMode
impl Send for GameMode
impl Sync for GameMode
impl Unpin for GameMode
impl UnwindSafe for GameMode
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