[][src]Struct web_sys::XrFrame

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

The XrFrame class.

MDN Documentation

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

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

Methods

impl XrFrame[src]

pub fn session(&self) -> XrSession[src]

Getter for the session field of this object.

MDN Documentation

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

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

impl XrFrame[src]

pub fn get_pose(&self, space: &XrSpace, base_space: &XrSpace) -> Option<XrPose>[src]

The getPose() method.

MDN Documentation

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

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

impl XrFrame[src]

pub fn get_viewer_pose(
    &self,
    reference_space: &XrReferenceSpace
) -> Option<XrViewerPose>
[src]

The getViewerPose() method.

MDN Documentation

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

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 XrFrame[src]

impl AsRef<Object> for XrFrame[src]

impl AsRef<XrFrame> for XrFrame[src]

impl Clone for XrFrame[src]

impl Debug for XrFrame[src]

impl Deref for XrFrame[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for XrFrame[src]

impl From<JsValue> for XrFrame[src]

impl From<XrFrame> for JsValue[src]

impl From<XrFrame> for Object[src]

impl FromWasmAbi for XrFrame[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 XrFrame[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 XrFrame[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 XrFrame[src]

impl OptionFromWasmAbi for XrFrame[src]

impl OptionIntoWasmAbi for XrFrame[src]

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

impl PartialEq<XrFrame> for XrFrame[src]

impl RefFromWasmAbi for XrFrame[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<XrFrame>

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 XrFrame[src]

impl StructuralPartialEq for XrFrame[src]

impl WasmDescribe for XrFrame[src]

Auto Trait Implementations

impl RefUnwindSafe for XrFrame

impl !Send for XrFrame

impl !Sync for XrFrame

impl Unpin for XrFrame

impl UnwindSafe for XrFrame

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.