pub enum IndexedImageError {
Show 15 variants
NotIciFile,
UnknownIciVersion(u8),
PaletteNameTooShort,
PaletteNameTooLong,
PaletteTooManyColors,
PaletteTooFewColors(u8),
InvalidFileFormat(usize, String),
PaletteNameNotUtf8(FromUtf8Error),
IdOutsideOfNewPalette,
IndexOutOfRange(usize, usize, &'static str),
WidthIsZero,
HeightIsZero,
MissingData(usize, usize),
PaletteIsEmpty,
NegativePerFrame(f64),
}
Variants§
NotIciFile
UnknownIciVersion(u8)
PaletteNameTooShort
PaletteNameTooLong
PaletteTooManyColors
PaletteTooFewColors(u8)
InvalidFileFormat(usize, String)
PaletteNameNotUtf8(FromUtf8Error)
IdOutsideOfNewPalette
IndexOutOfRange(usize, usize, &'static str)
WidthIsZero
HeightIsZero
MissingData(usize, usize)
PaletteIsEmpty
NegativePerFrame(f64)
Trait Implementations§
source§impl Debug for IndexedImageError
impl Debug for IndexedImageError
source§impl Display for IndexedImageError
impl Display for IndexedImageError
source§impl Error for IndexedImageError
impl Error for IndexedImageError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<FromUtf8Error> for IndexedImageError
impl From<FromUtf8Error> for IndexedImageError
source§fn from(source: FromUtf8Error) -> IndexedImageError
fn from(source: FromUtf8Error) -> IndexedImageError
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for IndexedImageError
impl Send for IndexedImageError
impl Sync for IndexedImageError
impl Unpin for IndexedImageError
impl UnwindSafe for IndexedImageError
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