script::dom::bindings::codegen::Bindings::DOMMatrixBinding

Type Alias DOMMatrixInit

Source
pub(crate) type DOMMatrixInit = DOMMatrixInit;

Aliased Type§

struct DOMMatrixInit {
    pub parent: DOMMatrix2DInit,
    pub is2D: Option<bool>,
    pub m13: f64,
    pub m14: f64,
    pub m23: f64,
    pub m24: f64,
    pub m31: f64,
    pub m32: f64,
    pub m33: f64,
    pub m34: f64,
    pub m43: f64,
    pub m44: f64,
}

Fields§

§parent: DOMMatrix2DInit§is2D: Option<bool>§m13: f64§m14: f64§m23: f64§m24: f64§m31: f64§m32: f64§m33: f64§m34: f64§m43: f64§m44: f64

Implementations

Trait Implementations

Source§

impl Default for DOMMatrixInit

Source§

fn default() -> DOMMatrixInit

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

impl FromJSValConvertible for DOMMatrixInit

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<DOMMatrixInit>, ()>

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 DOMMatrixInit

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 DOMMatrixInit

Source§

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

Trace self.