pub trait GamepadPoseMethods<D>where
D: DomTypes,{
// Required methods
fn HasOrientation(&self) -> bool;
fn HasPosition(&self) -> bool;
fn GetPosition(
&self,
) -> Option<RootedTraceableBox<TypedArray<Float32, Box<Heap<*mut JSObject>>>>>;
fn GetLinearVelocity(
&self,
) -> Option<RootedTraceableBox<TypedArray<Float32, Box<Heap<*mut JSObject>>>>>;
fn GetLinearAcceleration(
&self,
) -> Option<RootedTraceableBox<TypedArray<Float32, Box<Heap<*mut JSObject>>>>>;
fn GetOrientation(
&self,
) -> Option<RootedTraceableBox<TypedArray<Float32, Box<Heap<*mut JSObject>>>>>;
fn GetAngularVelocity(
&self,
) -> Option<RootedTraceableBox<TypedArray<Float32, Box<Heap<*mut JSObject>>>>>;
fn GetAngularAcceleration(
&self,
) -> Option<RootedTraceableBox<TypedArray<Float32, Box<Heap<*mut JSObject>>>>>;
}Required Methods§
fn HasOrientation(&self) -> bool
fn HasPosition(&self) -> bool
fn GetPosition( &self, ) -> Option<RootedTraceableBox<TypedArray<Float32, Box<Heap<*mut JSObject>>>>>
fn GetLinearVelocity( &self, ) -> Option<RootedTraceableBox<TypedArray<Float32, Box<Heap<*mut JSObject>>>>>
fn GetLinearAcceleration( &self, ) -> Option<RootedTraceableBox<TypedArray<Float32, Box<Heap<*mut JSObject>>>>>
fn GetOrientation( &self, ) -> Option<RootedTraceableBox<TypedArray<Float32, Box<Heap<*mut JSObject>>>>>
fn GetAngularVelocity( &self, ) -> Option<RootedTraceableBox<TypedArray<Float32, Box<Heap<*mut JSObject>>>>>
fn GetAngularAcceleration( &self, ) -> Option<RootedTraceableBox<TypedArray<Float32, Box<Heap<*mut JSObject>>>>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".