Enum gif::encoder::EncodingFormatError
source · #[non_exhaustive]pub enum EncodingFormatError {
TooManyColors,
MissingColorPalette,
InvalidMinCodeSize,
}
Expand description
The image has incorrect properties, making it impossible to encode as a gif.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TooManyColors
The image has too many colors.
MissingColorPalette
The image has no color palette which is required.
InvalidMinCodeSize
LZW data is not valid for GIF. This may happen when wrong buffer is given to write_lzw_pre_encoded_frame
Trait Implementations§
source§impl Debug for EncodingFormatError
impl Debug for EncodingFormatError
source§impl Display for EncodingFormatError
impl Display for EncodingFormatError
source§impl Error for EncodingFormatError
impl Error for EncodingFormatError
1.30.0 · 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<EncodingFormatError> for EncodingError
impl From<EncodingFormatError> for EncodingError
source§fn from(err: EncodingFormatError) -> Self
fn from(err: EncodingFormatError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EncodingFormatError
impl RefUnwindSafe for EncodingFormatError
impl Send for EncodingFormatError
impl Sync for EncodingFormatError
impl Unpin for EncodingFormatError
impl UnwindSafe for EncodingFormatError
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