pub(crate) trait XRRayMethods<D>where
D: DomTypes,{
// Required methods
fn Origin(
&self,
_can_gc: CanGc,
) -> Root<Dom<<D as DomTypes>::DOMPointReadOnly>>;
fn Direction(
&self,
_can_gc: CanGc,
) -> Root<Dom<<D as DomTypes>::DOMPointReadOnly>>;
fn Matrix(
&self,
cx: JSContext,
_can_gc: CanGc,
) -> TypedArray<Float32, *mut JSObject>;
fn Constructor(
global: &<D as DomTypes>::Window,
proto: Option<Handle<'_, *mut JSObject>>,
can_gc: CanGc,
origin: &DOMPointInit,
direction: &XRRayDirectionInit,
) -> Result<Root<Dom<<D as DomTypes>::XRRay>>, Error>;
fn Constructor_(
global: &<D as DomTypes>::Window,
proto: Option<Handle<'_, *mut JSObject>>,
can_gc: CanGc,
transform: &<D as DomTypes>::XRRigidTransform,
) -> Result<Root<Dom<<D as DomTypes>::XRRay>>, Error>;
}
Required Methods§
fn Origin(&self, _can_gc: CanGc) -> Root<Dom<<D as DomTypes>::DOMPointReadOnly>>
fn Direction( &self, _can_gc: CanGc, ) -> Root<Dom<<D as DomTypes>::DOMPointReadOnly>>
fn Matrix( &self, cx: JSContext, _can_gc: CanGc, ) -> TypedArray<Float32, *mut JSObject>
fn Constructor( global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, origin: &DOMPointInit, direction: &XRRayDirectionInit, ) -> Result<Root<Dom<<D as DomTypes>::XRRay>>, Error>
fn Constructor_( global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, transform: &<D as DomTypes>::XRRigidTransform, ) -> Result<Root<Dom<<D as DomTypes>::XRRay>>, 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.