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§fn from(r: &'static str) -> PSDDecodeErrors
fn from(r: &'static str) -> PSDDecodeErrors
Converts to this type from the input type.
Source§impl From<PSDDecodeErrors> for ImageErrors
impl From<PSDDecodeErrors> for ImageErrors
Source§fn from(error: PSDDecodeErrors) -> Self
fn from(error: PSDDecodeErrors) -> Self
Converts to this type from the input type.
Source§impl From<ZByteIoError> for PSDDecodeErrors
impl From<ZByteIoError> for PSDDecodeErrors
Source§fn from(r: ZByteIoError) -> PSDDecodeErrors
fn from(r: ZByteIoError) -> PSDDecodeErrors
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PSDDecodeErrors
impl !UnwindSafe for PSDDecodeErrors
impl Freeze for PSDDecodeErrors
impl Send for PSDDecodeErrors
impl Sync for PSDDecodeErrors
impl Unpin for PSDDecodeErrors
impl UnsafeUnpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more