pub enum Keyboard {
Present,
Absent,
}Expand description
Whether the platform has a keyboard
(PlatformFacts::keyboard).
Variants§
Present
It does (a computer, a browser): a first key press opens the
game’s first-key screen until a layout is chosen
(GameHooks::first_key).
Absent
It has only its own buttons (a console): that screen never opens.
Trait Implementations§
impl Copy for Keyboard
Source§impl<'de> Deserialize<'de> for Keyboard
impl<'de> Deserialize<'de> for Keyboard
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Keyboard
impl StructuralPartialEq for Keyboard
Auto Trait Implementations§
impl Freeze for Keyboard
impl RefUnwindSafe for Keyboard
impl Send for Keyboard
impl Sync for Keyboard
impl Unpin for Keyboard
impl UnsafeUnpin for Keyboard
impl UnwindSafe for Keyboard
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