pub enum InputDevice {
Nes(Nes),
Controller(Controller),
Keyboard(Keyboard),
}
Expand description
Enumeration over all input types
Variants§
Trait Implementations§
Source§impl Clone for InputDevice
impl Clone for InputDevice
Source§fn clone(&self) -> InputDevice
fn clone(&self) -> InputDevice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for InputDevice
impl<'de> Deserialize<'de> for InputDevice
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
Source§impl InputCombine for InputDevice
impl InputCombine for InputDevice
Source§impl InputConvert for InputDevice
impl InputConvert for InputDevice
fn convert(&self, device_type: InputDeviceType) -> Option<InputDevice>
Auto Trait Implementations§
impl Freeze for InputDevice
impl RefUnwindSafe for InputDevice
impl Send for InputDevice
impl Sync for InputDevice
impl Unpin for InputDevice
impl UnwindSafe for InputDevice
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