[−][src]Struct gift::Decoder
Builder for GIF decoders.
- BlockDecoder — low-level, Blocks
- FrameDecoder — mid-level, Frames
- RasterDecoder — high-level, Rasters
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]
ⓘImportant traits for BlockDecoder<R>
Convert into a block decoder.
ⓘImportant traits for FrameDecoder<R>pub fn into_frame_decoder(self) -> FrameDecoder<R>
[src]
ⓘImportant traits for FrameDecoder<R>
Convert into a frame decoder.
ⓘImportant traits for RasterDecoder<R>pub fn into_raster_decoder(self) -> RasterDecoder<R>
[src]
ⓘImportant traits for RasterDecoder<R>
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
Blanket Implementations
impl<T> From<T> for T
[src]
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
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?
fn into_iter(self) -> I
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,