pub enum Error {
BadBlockSize,
BadContext,
BadCpuFloat,
BadDecodeMode,
BadFlags,
BadParam,
BadQuality,
BadProfile,
BadSwizzle,
NotImplemented,
OutOfMem,
Unknown,
}
Expand description
An error during initialization, compression or decompression.
Variants§
BadBlockSize
The block size is out of range of the supported sizes.
BadContext
TODO: The context is broken somehow
BadCpuFloat
TODO: The CPU has incomplete float support somehow
BadDecodeMode
The library was compiled for ISA incompatible with the ISA that we’re running on.
BadFlags
The flags are contradictory or otherwise incorrect.
BadParam
A bad parameter was supplied
BadQuality
The supplied preset is unsupported
BadProfile
The supplied profile is unsupported
BadSwizzle
The supplied swizzle is unsupported
NotImplemented
Some unimplemented code was reached
OutOfMem
We ran out of memory
Unknown
Something else went wrong (this should never happen!)
Trait Implementations§
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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