[][src]Struct image::webp::WebpDecoder

pub struct WebpDecoder<R> { /* fields omitted */ }

Webp Image format decoder. Currently only supportes the luma channel (meaning that decoded images will be grayscale).

Methods

impl<R: Read> WebpDecoder<R>[src]

pub fn new(r: R) -> ImageResult<WebpDecoder<R>>[src]

Create a new WebpDecoder from the Reader r. This function takes ownership of the Reader.

Trait Implementations

impl<'a, R: 'a + Read> ImageDecoder<'a> for WebpDecoder<R>[src]

type Reader = WebpReader<R>

The type of reader produced by into_reader.

Auto Trait Implementations

impl<R> RefUnwindSafe for WebpDecoder<R> where
    R: RefUnwindSafe

impl<R> Send for WebpDecoder<R> where
    R: Send

impl<R> Sync for WebpDecoder<R> where
    R: Sync

impl<R> Unpin for WebpDecoder<R> where
    R: Unpin

impl<R> UnwindSafe for WebpDecoder<R> where
    R: UnwindSafe

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> SetParameter for T[src]

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.