pub(crate) type GPUOrigin3DDict = GPUOrigin3DDict;
Aliased Type§
struct GPUOrigin3DDict {
pub(crate) x: u32,
pub(crate) y: u32,
pub(crate) z: u32,
}
Fields§
§x: u32
§y: u32
§z: u32
Implementations
Source§impl GPUOrigin3DDict
impl GPUOrigin3DDict
pub(crate) fn empty() -> Self
pub(crate) fn new( cx: SafeJSContext, val: HandleValue<'_>, ) -> Result<ConversionResult<GPUOrigin3DDict>, ()>
Source§impl GPUOrigin3DDict
impl GPUOrigin3DDict
pub(crate) unsafe fn to_jsobject( &self, cx: *mut JSContext, obj: MutableHandleObject<'_>, )
Trait Implementations
Source§impl Default for GPUOrigin3DDict
impl Default for GPUOrigin3DDict
Source§impl FromJSValConvertible for GPUOrigin3DDict
impl FromJSValConvertible for GPUOrigin3DDict
Source§unsafe fn from_jsval(
cx: *mut JSContext,
value: HandleValue<'_>,
_option: (),
) -> Result<ConversionResult<GPUOrigin3DDict>, ()>
unsafe fn from_jsval( cx: *mut JSContext, value: HandleValue<'_>, _option: (), ) -> Result<ConversionResult<GPUOrigin3DDict>, ()>
Convert
val
to type Self
.
Optional configuration of type T
can be passed as the option
argument.
If it returns Err(())
, a JSAPI exception is pending.
If it returns Ok(Failure(reason))
, there is no pending JSAPI exception.