Enum web_sys::GamepadHand
source · pub enum GamepadHand {
None,
Left,
Right,
// some variants omitted
}
Variants§
Implementations§
source§impl GamepadHand
impl GamepadHand
pub fn from_js_value(obj: &JsValue) -> Option<GamepadHand>
Trait Implementations§
source§impl Clone for GamepadHand
impl Clone for GamepadHand
source§fn clone(&self) -> GamepadHand
fn clone(&self) -> GamepadHand
Returns a copy 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 Debug for GamepadHand
impl Debug for GamepadHand
source§impl From<GamepadHand> for JsValue
impl From<GamepadHand> for JsValue
source§fn from(obj: GamepadHand) -> JsValue
fn from(obj: GamepadHand) -> JsValue
Converts to this type from the input type.
source§impl FromWasmAbi for GamepadHand
impl FromWasmAbi for GamepadHand
source§impl IntoWasmAbi for GamepadHand
impl IntoWasmAbi for GamepadHand
source§impl PartialEq<GamepadHand> for GamepadHand
impl PartialEq<GamepadHand> for GamepadHand
source§fn eq(&self, other: &GamepadHand) -> bool
fn eq(&self, other: &GamepadHand) -> bool
impl Copy for GamepadHand
impl StructuralPartialEq for GamepadHand
Auto Trait Implementations§
impl RefUnwindSafe for GamepadHand
impl Send for GamepadHand
impl Sync for GamepadHand
impl Unpin for GamepadHand
impl UnwindSafe for GamepadHand
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more