Struct stdweb::web::ImageData
[−]
[src]
pub struct ImageData(_);
The ImageData struct represents the underlying pixel data of an area of a
Methods
impl ImageData
[src]
pub fn get_height(&self) -> u32
[src]
Returns the number of rows in the image data object.
pub fn get_width(&self) -> u32
[src]
Returns the number of pixels per row in the image data object.
Trait Implementations
impl Clone for ImageData
[src]
fn clone(&self) -> ImageData
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ImageData
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl InstanceOf for ImageData
[src]
fn instance_of(reference: &Reference) -> bool
[src]
Checks whenever a given Reference if of type Self
.
impl AsRef<Reference> for ImageData
[src]
impl ReferenceType for ImageData
[src]
unsafe fn from_reference_unchecked(reference: Reference) -> Self
[src]
Converts a given reference into a concrete reference-like wrapper. Doesn't do any type checking; highly unsafe to use! Read more
impl From<ImageData> for Reference
[src]
impl TryFrom<ImageData> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: ImageData) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl TryFrom<Reference> for ImageData
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: Reference) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl<'_r> TryFrom<&'_r Reference> for ImageData
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: &Reference) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl TryFrom<Value> for ImageData
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl<'_r> TryFrom<&'_r Value> for ImageData
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: &Value) -> Result<Self, Self::Error>
[src]
Performs the conversion.