Enum image::codecs::dds::DecoderError
source · enum DecoderError {
PixelFormatSizeInvalid(u32),
HeaderSizeInvalid(u32),
HeaderFlagsInvalid(u32),
DxgiFormatInvalid(u32),
ResourceDimensionInvalid(u32),
Dx10FlagsInvalid(u32),
Dx10ArraySizeInvalid(u32),
DdsSignatureInvalid,
}
Expand description
Errors that can occur during decoding and parsing a DDS image
Variants§
PixelFormatSizeInvalid(u32)
Wrong DDS channel width
HeaderSizeInvalid(u32)
Wrong DDS header size
HeaderFlagsInvalid(u32)
Wrong DDS header flags
DxgiFormatInvalid(u32)
Invalid DXGI format in DX10 header
ResourceDimensionInvalid(u32)
Invalid resource dimension
Dx10FlagsInvalid(u32)
Invalid flags in DX10 header
Dx10ArraySizeInvalid(u32)
Invalid array size in DX10 header
DdsSignatureInvalid
DDS “DDS “ signature invalid or missing
Trait Implementations§
source§impl Clone for DecoderError
impl Clone for DecoderError
source§fn clone(&self) -> DecoderError
fn clone(&self) -> DecoderError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DecoderError
impl Debug for DecoderError
source§impl Display for DecoderError
impl Display for DecoderError
source§impl Error for DecoderError
impl Error for DecoderError
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<DecoderError> for ImageError
impl From<DecoderError> for ImageError
source§fn from(e: DecoderError) -> ImageError
fn from(e: DecoderError) -> ImageError
Converts to this type from the input type.
source§impl Hash for DecoderError
impl Hash for DecoderError
source§impl Ord for DecoderError
impl Ord for DecoderError
source§fn cmp(&self, other: &DecoderError) -> Ordering
fn cmp(&self, other: &DecoderError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DecoderError
impl PartialEq for DecoderError
source§impl PartialOrd for DecoderError
impl PartialOrd for DecoderError
impl Copy for DecoderError
impl Eq for DecoderError
impl StructuralPartialEq for DecoderError
Auto Trait Implementations§
impl Freeze for DecoderError
impl RefUnwindSafe for DecoderError
impl Send for DecoderError
impl Sync for DecoderError
impl Unpin for DecoderError
impl UnwindSafe for DecoderError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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