pub(crate) trait XRRigidTransformMethods<D>where
D: DomTypes,{
// Required methods
fn Position(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::DOMPointReadOnly>>;
fn Orientation(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::DOMPointReadOnly>>;
fn Matrix(
&self,
cx: &mut JSContext,
) -> RootedTraceableBox<TypedArray<Float32, Box<Heap<*mut JSObject>>>>;
fn Inverse(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::XRRigidTransform>>;
fn Constructor(
cx: &mut JSContext,
global: &<D as DomTypes>::Window,
proto: Option<Handle<'_, *mut JSObject>>,
position: &DOMPointInit,
orientation: &DOMPointInit,
) -> Result<Root<Dom<<D as DomTypes>::XRRigidTransform>>, Error>;
}Required Methods§
fn Position( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::DOMPointReadOnly>>
fn Orientation( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::DOMPointReadOnly>>
fn Matrix( &self, cx: &mut JSContext, ) -> RootedTraceableBox<TypedArray<Float32, Box<Heap<*mut JSObject>>>>
fn Inverse( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::XRRigidTransform>>
fn Constructor( cx: &mut JSContext, global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, position: &DOMPointInit, orientation: &DOMPointInit, ) -> Result<Root<Dom<<D as DomTypes>::XRRigidTransform>>, Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.