Enum stdweb::web::error::DrawImageError
[−]
[src]
pub enum DrawImageError { IndexSizeError(IndexSizeError), InvalidStateError(InvalidStateError), NotSupportedError(NotSupportedError), TypeError(TypeError), }
A enum of the exceptions that CanvasRenderingContext2D.draw_image() and similar may throw
Variants
IndexSizeError(IndexSizeError)
An IndexSizeError if the source or destination rectangle has an width or height of 0
InvalidStateError(InvalidStateError)
An InvalidStateError if the image has no image data
NotSupportedError(NotSupportedError)
A NotSupportedError
TypeError(TypeError)
A TypeError if the specified source element isn't supported
Trait Implementations
impl Debug for DrawImageError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for DrawImageError
[src]
fn clone(&self) -> DrawImageError
[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 TryFrom<Value> for DrawImageError
[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 Display for DrawImageError
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more