Enum web_sys::GamepadHand
source · [−]pub enum GamepadHand {
None,
Left,
Right,
// some variants omitted
}
Expand description
The GamepadHand
enum.
This API requires the following crate features to be activated: GamepadHand
Variants
None
Left
Right
Implementations
sourceimpl GamepadHand
impl GamepadHand
pub fn from_js_value(obj: &JsValue) -> Option<GamepadHand>
Trait Implementations
sourceimpl Clone for GamepadHand
impl Clone for GamepadHand
sourcefn clone(&self) -> GamepadHand
fn clone(&self) -> GamepadHand
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GamepadHand
impl Debug for GamepadHand
sourceimpl From<GamepadHand> for JsValue
impl From<GamepadHand> for JsValue
sourcefn from(obj: GamepadHand) -> JsValue
fn from(obj: GamepadHand) -> JsValue
Converts to this type from the input type.
sourceimpl FromWasmAbi for GamepadHand
impl FromWasmAbi for GamepadHand
sourceimpl IntoWasmAbi for GamepadHand
impl IntoWasmAbi for GamepadHand
sourceimpl OptionFromWasmAbi for GamepadHand
impl OptionFromWasmAbi for GamepadHand
sourceimpl OptionIntoWasmAbi for GamepadHand
impl OptionIntoWasmAbi for GamepadHand
sourceimpl PartialEq<GamepadHand> for GamepadHand
impl PartialEq<GamepadHand> for GamepadHand
sourceimpl WasmDescribe for GamepadHand
impl WasmDescribe for GamepadHand
impl Copy for GamepadHand
impl Eq for GamepadHand
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
sourcefn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more