Struct image::webp::WebPDecoder[][src]

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

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

Implementations

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, 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.