Skip to main content

GifEncoderExt

Trait GifEncoderExt 

Source
pub trait GifEncoderExt: GifEncoder {
    // Provided methods
    fn encode_default(&self, frames: &[EncodableFrame]) -> Result<Vec<u8>> { ... }
    fn can_encode(&self, config: &EncodeConfig) -> bool { ... }
}
Expand description

Extension trait for encoder utilities.

Provided Methods§

Source

fn encode_default(&self, frames: &[EncodableFrame]) -> Result<Vec<u8>>

Encode with default configuration.

Source

fn can_encode(&self, config: &EncodeConfig) -> bool

Check if this encoder can handle the given configuration.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§