Struct GifDecoder

pub struct GifDecoder<R: Read> { /* private fields */ }

GIF decoder

Implementations

impl<R: Read> GifDecoder<R>

fn new(r: R) -> ImageResult<GifDecoder<R>>

Creates a new decoder that decodes the input steam r

Trait Implementations

impl<'a, R: BufRead + Seek + 'a> AnimationDecoder<'a> for GifDecoder<R>

fn loop_count(&self) -> LoopCount
fn into_frames(self) -> Frames<'a>

impl<R: BufRead + Seek> ImageDecoder for GifDecoder<R>

fn dimensions(&self) -> (u32, u32)
fn color_type(&self) -> ColorType
fn set_limits(&mut self, limits: Limits) -> ImageResult<()>
fn read_image(self, buf: &mut [u8]) -> ImageResult<()>
fn icc_profile(&mut self) -> ImageResult<Option<Vec<u8>>>
fn xmp_metadata(&mut self) -> ImageResult<Option<Vec<u8>>>
fn read_image_boxed(self: Box<Self>, buf: &mut [u8]) -> ImageResult<()>

Auto Trait Implementations

impl<R> !RefUnwindSafe for GifDecoder<R>

impl<R> !Sync for GifDecoder<R>

impl<R> !UnwindSafe for GifDecoder<R>

impl<R> Freeze for GifDecoder<R> where Decoder<R>: Freeze,

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

impl<R> Unpin for GifDecoder<R> where Decoder<R>: Unpin,

impl<R> UnsafeUnpin for GifDecoder<R> where Decoder<R>: UnsafeUnpin,

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for GifDecoder<R> where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for GifDecoder<R> where ST: ?Sized, DT: ?Sized,

impl<T> Any for GifDecoder<R> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for GifDecoder<R> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for GifDecoder<R> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for GifDecoder<R>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> IntoEither for GifDecoder<R>

impl<T> Pointable for GifDecoder<R>

const ALIGN: usize = _;
type Init = T;
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

impl<T> Read<Exclusive, BecauseExclusive> for GifDecoder<R> where T: ?Sized,

impl<T, U> Into<U> for GifDecoder<R> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for GifDecoder<R> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for GifDecoder<R> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>