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§
Sourcefn encode_default(&self, frames: &[EncodableFrame]) -> Result<Vec<u8>>
fn encode_default(&self, frames: &[EncodableFrame]) -> Result<Vec<u8>>
Encode with default configuration.
Sourcefn can_encode(&self, config: &EncodeConfig) -> bool
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.