Struct gilrs::ev::Code [−][src]
pub struct Code(_);
Expand description
Platform specific event code.
This type represents single gamepads’s element like specific axis or button.
It can’t be directly created, but you can get it from events or using
Gamepad
’s methods button_code
and
axis_code
. If serde-serialize
feature is
enabled, Code
can be serialized and deserialized, but keep in mind that
layout is platform-specific. So it’s not possible to serialize Code
on
Linux and deserialize it on Windows. This also apply to Display
implementation.
Implementations
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Code
impl UnwindSafe for Code
Blanket Implementations
Mutably borrows from an owned value. Read more