script::dom::bindings::codegen::Bindings::DOMPointBinding

Type Alias DOMPointInit

Source
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

Trait Implementations

Source§

impl Default for DOMPointInit

Source§

fn default() -> DOMPointInit

Returns the “default value” for a type. Read more
Source§

impl FromJSValConvertible for DOMPointInit

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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.
Source§

impl ToJSValConvertible for DOMPointInit

Source§

unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandle<'_, Value>)

Convert self to a JSVal. JSAPI failure causes a panic.
Source§

impl Traceable for DOMPointInit

Source§

unsafe fn trace(&self, tracer: *mut JSTracer)

Trace self.