[go: up one dir, main page]

[][src]Struct gif::DecodeOptions

pub struct DecodeOptions { /* fields omitted */ }

Options for opening a GIF decoder.

Implementations

impl DecodeOptions[src]

pub fn new() -> DecodeOptions[src]

Creates a new decoder builder

pub fn set_color_output(&mut self, color: ColorOutput)[src]

Configure how color data is decoded.

pub fn set_memory_limit(&mut self, MemoryLimit: MemoryLimit)[src]

Configure a memory limit for decoding.

pub fn read_info<R: Read>(self, r: R) -> Result<Decoder<R>, DecodingError>[src]

Reads the logical screen descriptor including the global color palette

Returns a Decoder. All decoder configuration has to be done beforehand.

Trait Implementations

impl Clone for DecodeOptions[src]

impl Debug for DecodeOptions[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.