pub(crate) type DOMPointInit = DOMPointInit;
Aliased Type§
struct DOMPointInit {
pub w: f64,
pub x: f64,
pub y: f64,
pub z: f64,
}
Fields§
§w: f64
§x: f64
§y: f64
§z: f64
Implementations
Source§impl DOMPointInit
impl DOMPointInit
pub unsafe fn to_jsobject( &self, cx: *mut JSContext, obj: MutableHandle<'_, *mut JSObject>, )
Source§impl DOMPointInit
impl DOMPointInit
pub fn empty() -> DOMPointInit
pub fn new( cx: JSContext, val: Handle<'_, Value>, ) -> Result<ConversionResult<DOMPointInit>, ()>
Trait Implementations
Source§impl Default for DOMPointInit
impl Default for DOMPointInit
Source§fn default() -> DOMPointInit
fn default() -> DOMPointInit
Returns the “default value” for a type. Read more
Source§impl FromJSValConvertible for DOMPointInit
impl FromJSValConvertible for DOMPointInit
Source§unsafe fn from_jsval(
cx: *mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<DOMPointInit>, ()>
unsafe fn from_jsval( cx: *mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<DOMPointInit>, ()>
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.