pub enum GifEncodingError {
NoFrames,
TooManyColors {
frame_index: usize,
},
PartialTransparency {
frame_index: usize,
},
Encoder(EncodingError),
}Expand description
Why a GIF was not produced.
Variants§
NoFrames
No frames were given.
TooManyColors
A frame has more opaque colors than one GIF palette holds.
PartialTransparency
A frame has a pixel that is neither opaque nor fully transparent.
Encoder(EncodingError)
The GIF encoder failed; carries its own error.
Trait Implementations§
Source§impl Debug for GifEncodingError
impl Debug for GifEncodingError
Source§impl Display for GifEncodingError
impl Display for GifEncodingError
Source§impl Error for GifEncodingError
impl Error for GifEncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<EncodingError> for GifEncodingError
impl From<EncodingError> for GifEncodingError
Source§fn from(encoding_error: EncodingError) -> Self
fn from(encoding_error: EncodingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for GifEncodingError
impl !UnwindSafe for GifEncodingError
impl Freeze for GifEncodingError
impl Send for GifEncodingError
impl Sync for GifEncodingError
impl Unpin for GifEncodingError
impl UnsafeUnpin for GifEncodingError
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