pub struct GifEncoderConfig {
pub colors: usize,
pub quantization: QuantizationMethod,
pub dithering: DitheringMethod,
pub transparent_index: Option<u8>,
pub loop_count: u16,
}Expand description
GIF encoder configuration.
Fields§
§colors: usizeNumber of colors in palette (2-256).
quantization: QuantizationMethodColor quantization method.
dithering: DitheringMethodDithering method.
transparent_index: Option<u8>Transparent color index (None = no transparency).
loop_count: u16Loop count (0 = infinite, 1 = no loop).
Trait Implementations§
Source§impl Clone for GifEncoderConfig
impl Clone for GifEncoderConfig
Source§fn clone(&self) -> GifEncoderConfig
fn clone(&self) -> GifEncoderConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GifEncoderConfig
impl Debug for GifEncoderConfig
Auto Trait Implementations§
impl Freeze for GifEncoderConfig
impl RefUnwindSafe for GifEncoderConfig
impl Send for GifEncoderConfig
impl Sync for GifEncoderConfig
impl Unpin for GifEncoderConfig
impl UnsafeUnpin for GifEncoderConfig
impl UnwindSafe for GifEncoderConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more