pub(crate) trait ImageDataMethods<D: DomTypes> {
    // Required methods
    fn Width(&self) -> u32;
    fn Height(&self) -> u32;
    fn GetData(&self, cx: SafeJSContext) -> Fallible<Uint8ClampedArray>;
    fn Constructor(
        global: &D::GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        sw: u32,
        sh: u32,
    ) -> Fallible<DomRoot<D::ImageData>>;
    fn Constructor_(
        cx: SafeJSContext,
        global: &D::GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        data: *mut JSObject,
        sw: u32,
        sh: Option<u32>,
    ) -> Fallible<DomRoot<D::ImageData>>;
}

Required Methods§

Source

fn Width(&self) -> u32

Source

fn Height(&self) -> u32

Source

fn GetData(&self, cx: SafeJSContext) -> Fallible<Uint8ClampedArray>

Source

fn Constructor( global: &D::GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, sw: u32, sh: u32, ) -> Fallible<DomRoot<D::ImageData>>

Source

fn Constructor_( cx: SafeJSContext, global: &D::GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, data: *mut JSObject, sw: u32, sh: Option<u32>, ) -> Fallible<DomRoot<D::ImageData>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§