[][src]Struct web_sys::XrInputSourceEventInit

#[repr(transparent)]pub struct XrInputSourceEventInit { /* fields omitted */ }

The XrInputSourceEventInit dictionary.

This API requires the following crate features to be activated: XrInputSourceEventInit

This API is unstable and requires --cfg=web_sys_unstable_apis to be activated, as described in the wasm-bindgen guide

Methods

impl XrInputSourceEventInit[src]

pub fn new(frame: &XrFrame, input_source: &XrInputSource) -> Self[src]

Construct a new XrInputSourceEventInit.

This API requires the following crate features to be activated: XrFrame, XrInputSource, XrInputSourceEventInit

This API is unstable and requires --cfg=web_sys_unstable_apis to be activated, as described in the wasm-bindgen guide

pub fn bubbles(&mut self, val: bool) -> &mut Self[src]

Change the bubbles field of this object.

This API requires the following crate features to be activated: XrInputSourceEventInit

This API is unstable and requires --cfg=web_sys_unstable_apis to be activated, as described in the wasm-bindgen guide

pub fn cancelable(&mut self, val: bool) -> &mut Self[src]

Change the cancelable field of this object.

This API requires the following crate features to be activated: XrInputSourceEventInit

This API is unstable and requires --cfg=web_sys_unstable_apis to be activated, as described in the wasm-bindgen guide

pub fn composed(&mut self, val: bool) -> &mut Self[src]

Change the composed field of this object.

This API requires the following crate features to be activated: XrInputSourceEventInit

This API is unstable and requires --cfg=web_sys_unstable_apis to be activated, as described in the wasm-bindgen guide

pub fn frame(&mut self, val: &XrFrame) -> &mut Self[src]

Change the frame field of this object.

This API requires the following crate features to be activated: XrFrame, XrInputSourceEventInit

This API is unstable and requires --cfg=web_sys_unstable_apis to be activated, as described in the wasm-bindgen guide

pub fn input_source(&mut self, val: &XrInputSource) -> &mut Self[src]

Change the inputSource field of this object.

This API requires the following crate features to be activated: XrInputSource, XrInputSourceEventInit

This API is unstable and requires --cfg=web_sys_unstable_apis to be activated, as described in the wasm-bindgen guide

Trait Implementations

impl AsRef<JsValue> for XrInputSourceEventInit[src]

impl AsRef<Object> for XrInputSourceEventInit[src]

impl AsRef<XrInputSourceEventInit> for XrInputSourceEventInit[src]

impl Clone for XrInputSourceEventInit[src]

impl Debug for XrInputSourceEventInit[src]

impl Deref for XrInputSourceEventInit[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for XrInputSourceEventInit[src]

impl From<JsValue> for XrInputSourceEventInit[src]

impl From<XrInputSourceEventInit> for JsValue[src]

impl From<XrInputSourceEventInit> for Object[src]

impl FromWasmAbi for XrInputSourceEventInit[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for XrInputSourceEventInit[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a XrInputSourceEventInit[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for XrInputSourceEventInit[src]

impl OptionFromWasmAbi for XrInputSourceEventInit[src]

impl OptionIntoWasmAbi for XrInputSourceEventInit[src]

impl<'a> OptionIntoWasmAbi for &'a XrInputSourceEventInit[src]

impl PartialEq<XrInputSourceEventInit> for XrInputSourceEventInit[src]

impl RefFromWasmAbi for XrInputSourceEventInit[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<XrInputSourceEventInit>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl StructuralEq for XrInputSourceEventInit[src]

impl StructuralPartialEq for XrInputSourceEventInit[src]

impl WasmDescribe for XrInputSourceEventInit[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.