pub enum PSDDecodeErrors {
WrongMagicBytes(u32),
UnsupportedFileType(u16),
UnsupportedChannelCount(u16),
UnsupportedBitDepth(u16),
UnsupportedColorFormat(Option<ColorModes>),
LargeDimensions(usize, usize),
ZeroDimensions,
UnknownCompression,
Generic(&'static str),
IoErrors(ZByteIoError),
BadRLE,
}Expand description
PSDDecodeErrors that can occur during PSD decoding
Variants§
WrongMagicBytes(u32)
UnsupportedFileType(u16)
UnsupportedChannelCount(u16)
UnsupportedBitDepth(u16)
UnsupportedColorFormat(Option<ColorModes>)
LargeDimensions(usize, usize)
ZeroDimensions
UnknownCompression
Generic(&'static str)
IoErrors(ZByteIoError)
BadRLE
Trait Implementations§
Source§impl Debug for PSDDecodeErrors
impl Debug for PSDDecodeErrors
Source§impl From<&'static str> for PSDDecodeErrors
impl From<&'static str> for PSDDecodeErrors
Source§impl From<ZByteIoError> for PSDDecodeErrors
impl From<ZByteIoError> for PSDDecodeErrors
Source§fn from(r: ZByteIoError) -> Self
fn from(r: ZByteIoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PSDDecodeErrors
impl RefUnwindSafe for PSDDecodeErrors
impl Send for PSDDecodeErrors
impl Sync for PSDDecodeErrors
impl Unpin for PSDDecodeErrors
impl UnwindSafe for PSDDecodeErrors
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