#[non_exhaustive]pub enum CrunchError {
Header(&'static str),
Truncated,
Huffman,
Palette,
Reference,
Faces(u8),
Segmented,
Charge(ChargeError),
}Expand description
Why legacy crunch could not be unpacked. No error owns input-sized heap.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Header(&'static str)
A malformed header, range, dimension or palette descriptor.
Truncated
A bitstream region is empty (reference start_decoding refuses it).
Huffman
Invalid Huffman model, run or canonical code.
Palette
A decoded palette index or selector delta is out of range.
Reference
A block reference reads row storage the reference never initialized.
Faces(u8)
The reference Texture2D wrapper provides only one destination face.
Segmented
Segmented CRN needs an external level source the wrapper cannot supply.
Charge(ChargeError)
Allocation or meter refusal, with every live buffer released on return.
Trait Implementations§
Source§impl Debug for CrunchError
impl Debug for CrunchError
Source§impl Display for CrunchError
impl Display for CrunchError
impl Eq for CrunchError
Source§impl Error for CrunchError
impl Error for CrunchError
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<ChargeError> for CrunchError
impl From<ChargeError> for CrunchError
Source§fn from(source: ChargeError) -> Self
fn from(source: ChargeError) -> Self
Converts to this type from the input type.
Source§impl From<CrunchError> for DecodeError
impl From<CrunchError> for DecodeError
Source§fn from(error: CrunchError) -> Self
fn from(error: CrunchError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CrunchError
impl PartialEq for CrunchError
impl StructuralPartialEq for CrunchError
Auto Trait Implementations§
impl Forget for CrunchError
impl Freeze for CrunchError
impl Move for CrunchError
impl RefUnwindSafe for CrunchError
impl Send for CrunchError
impl Sync for CrunchError
impl Unpin for CrunchError
impl UnsafeUnpin for CrunchError
impl UnwindSafe for CrunchError
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