[][src]Struct gift::Decoder

pub struct Decoder<R: Read> { /* fields omitted */ }

Builder for GIF decoders.

Methods

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

pub fn new(r: R) -> Self[src]

Create a new Decoder

pub fn max_image_sz(self, max_image_sz: Option<usize>) -> Self[src]

Set the maximum image size (in bytes) to allow for decoding.

Important traits for BlockDecoder<R>
pub fn into_block_decoder(self) -> BlockDecoder<R>[src]

Convert into a block decoder.

Important traits for FrameDecoder<R>
pub fn into_frame_decoder(self) -> FrameDecoder<R>[src]

Convert into a frame decoder.

Important traits for RasterDecoder<R>
pub fn into_raster_decoder(self) -> RasterDecoder<R>[src]

Convert into a raster decoder.

Trait Implementations

impl<R: Read> IntoIterator for Decoder<R>[src]

type Item = Result<Raster<Rgba8>, DecodeError>

The type of the elements being iterated over.

type IntoIter = RasterDecoder<R>

Which kind of iterator are we turning this into?

fn into_iter(self) -> Self::IntoIter[src]

Convert into a raster decoder

Auto Trait Implementations

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

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

Blanket Implementations

impl<T> From<T> for T[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]