Struct webp::WebPImage[][src]

pub struct WebPImage { /* fields omitted */ }
Expand description

This struct represents a decoded image. Its data contents can be accessed through the Deref and DerefMut traits. It is also possible to create an image::DynamicImage from this struct.

Implementations

Creates a DynamicImage from this WebPImage.

Returns the width of the image in pixels.

Returns the height of the image in pixels.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.