[][src]Struct web_sys::ImageData

#[repr(transparent)]pub struct ImageData { /* fields omitted */ }

The ImageData class.

MDN Documentation

This API requires the following crate features to be activated: ImageData

Methods

impl ImageData[src]

pub fn width(&self) -> u32[src]

Getter for the width field of this object.

MDN Documentation

This API requires the following crate features to be activated: ImageData

impl ImageData[src]

pub fn height(&self) -> u32[src]

Getter for the height field of this object.

MDN Documentation

This API requires the following crate features to be activated: ImageData

impl ImageData[src]

pub fn data(&self) -> Clamped<Vec<u8>>[src]

Getter for the data field of this object.

MDN Documentation

This API requires the following crate features to be activated: ImageData

impl ImageData[src]

pub fn new_with_sw(sw: u32, sh: u32) -> Result<ImageData, JsValue>[src]

The new ImageData(..) constructor, creating a new instance of ImageData.

MDN Documentation

This API requires the following crate features to be activated: ImageData

impl ImageData[src]

pub fn new_with_u8_clamped_array(
    data: Clamped<&mut [u8]>,
    sw: u32
) -> Result<ImageData, JsValue>
[src]

The new ImageData(..) constructor, creating a new instance of ImageData.

MDN Documentation

This API requires the following crate features to be activated: ImageData

impl ImageData[src]

pub fn new_with_u8_clamped_array_and_sh(
    data: Clamped<&mut [u8]>,
    sw: u32,
    sh: u32
) -> Result<ImageData, JsValue>
[src]

The new ImageData(..) constructor, creating a new instance of ImageData.

MDN Documentation

This API requires the following crate features to be activated: ImageData

Trait Implementations

impl AsRef<ImageData> for ImageData[src]

impl AsRef<JsValue> for ImageData[src]

impl AsRef<Object> for ImageData[src]

impl Clone for ImageData[src]

impl Debug for ImageData[src]

impl Deref for ImageData[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for ImageData[src]

impl From<ImageData> for JsValue[src]

impl From<ImageData> for Object[src]

impl From<JsValue> for ImageData[src]

impl FromWasmAbi for ImageData[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for ImageData[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a ImageData[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for ImageData[src]

impl OptionFromWasmAbi for ImageData[src]

impl OptionIntoWasmAbi for ImageData[src]

impl<'a> OptionIntoWasmAbi for &'a ImageData[src]

impl PartialEq<ImageData> for ImageData[src]

impl RefFromWasmAbi for ImageData[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<ImageData>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl StructuralEq for ImageData[src]

impl StructuralPartialEq for ImageData[src]

impl WasmDescribe for ImageData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.