pub trait XRRayMethods<D: DomTypes> {
// Required methods
fn Origin(&self, cx: &mut JSContext) -> DomRoot<D::DOMPointReadOnly>;
fn Direction(&self, cx: &mut JSContext) -> DomRoot<D::DOMPointReadOnly>;
fn Matrix(&self, cx: &mut JSContext) -> RootedTraceableBox<HeapFloat32Array>;
fn Constructor(
cx: &mut JSContext,
global: &D::Window,
proto: Option<HandleObject<'_>>,
origin: &DOMPointInit,
direction: &XRRayDirectionInit,
) -> Fallible<DomRoot<D::XRRay>>;
fn Constructor_(
cx: &mut JSContext,
global: &D::Window,
proto: Option<HandleObject<'_>>,
transform: &D::XRRigidTransform,
) -> Fallible<DomRoot<D::XRRay>>;
}Required Methods§
fn Origin(&self, cx: &mut JSContext) -> DomRoot<D::DOMPointReadOnly>
fn Direction(&self, cx: &mut JSContext) -> DomRoot<D::DOMPointReadOnly>
fn Matrix(&self, cx: &mut JSContext) -> RootedTraceableBox<HeapFloat32Array>
fn Constructor( cx: &mut JSContext, global: &D::Window, proto: Option<HandleObject<'_>>, origin: &DOMPointInit, direction: &XRRayDirectionInit, ) -> Fallible<DomRoot<D::XRRay>>
fn Constructor_( cx: &mut JSContext, global: &D::Window, proto: Option<HandleObject<'_>>, transform: &D::XRRigidTransform, ) -> Fallible<DomRoot<D::XRRay>>
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.