pub enum GifError {
InvalidDimensions {
width: u32,
height: u32,
},
DataLengthMismatch {
index: usize,
expected: usize,
actual: usize,
},
NoFrames,
}Expand description
Why frames could not be encoded.
Variants§
InvalidDimensions
A side is zero or larger than GIF’s 65 535 pixels.
DataLengthMismatch
A frame’s pixel data does not have width × height × 4 bytes.
Fields
NoFrames
There were no frames.
Trait Implementations§
impl Eq for GifError
Source§impl Error for GifError
impl Error for GifError
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()
impl StructuralPartialEq for GifError
Auto Trait Implementations§
impl Forget for GifError
impl Freeze for GifError
impl Move for GifError
impl RefUnwindSafe for GifError
impl Send for GifError
impl Sync for GifError
impl Unpin for GifError
impl UnsafeUnpin for GifError
impl UnwindSafe for GifError
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