#[non_exhaustive]pub enum BasisuEncodeError {
SetImageSliceOnlyAcceptsOneLayer,
EmptyImageData,
ImageUnmatchedDataAndSize {
image_size: Extent3d,
expected_len: usize,
data_len: usize,
},
BuSetImageFailed,
BuCompressFailed,
}Available on crate features
encoder and extra only.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.
SetImageSliceOnlyAcceptsOneLayer
EmptyImageData
ImageUnmatchedDataAndSize
BuSetImageFailed
BuCompressFailed
Trait Implementations§
Source§impl Debug for BasisuEncodeError
impl Debug for BasisuEncodeError
Source§impl Display for BasisuEncodeError
impl Display for BasisuEncodeError
Source§impl Error for BasisuEncodeError
impl Error for BasisuEncodeError
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 PartialEq for BasisuEncodeError
impl PartialEq for BasisuEncodeError
Source§fn eq(&self, other: &BasisuEncodeError) -> bool
fn eq(&self, other: &BasisuEncodeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BasisuEncodeError
Auto Trait Implementations§
impl Freeze for BasisuEncodeError
impl RefUnwindSafe for BasisuEncodeError
impl Send for BasisuEncodeError
impl Sync for BasisuEncodeError
impl Unpin for BasisuEncodeError
impl UnsafeUnpin for BasisuEncodeError
impl UnwindSafe for BasisuEncodeError
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