pub trait XRViewMethods<D>where
D: DomTypes,{
// Required methods
fn Eye(&self) -> XREye;
fn ProjectionMatrix(
&self,
cx: &mut JSContext,
) -> RootedTraceableBox<TypedArray<Float32, Box<Heap<*mut JSObject>>>>;
fn Transform(&self) -> Root<Dom<<D as DomTypes>::XRRigidTransform>>;
fn GetRecommendedViewportScale(&self) -> Option<Finite<f64>>;
fn RequestViewportScale(&self, scale: Option<Finite<f64>>);
fn IsFirstPersonObserver(&self) -> bool;
}Required Methods§
fn Eye(&self) -> XREye
fn ProjectionMatrix( &self, cx: &mut JSContext, ) -> RootedTraceableBox<TypedArray<Float32, Box<Heap<*mut JSObject>>>>
fn Transform(&self) -> Root<Dom<<D as DomTypes>::XRRigidTransform>>
fn GetRecommendedViewportScale(&self) -> Option<Finite<f64>>
fn RequestViewportScale(&self, scale: Option<Finite<f64>>)
fn IsFirstPersonObserver(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".