#[non_exhaustive]pub enum ExactDepthError {
UnsupportedStorage,
InvalidBits,
NarrowBelowEightBits,
FormatMismatch,
UnsupportedLayout,
}Expand description
Full re-export of zenpixels core types (zero module name collisions!).
An exact-depth statement is impossible for its storage, range, or layout.
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.
UnsupportedStorage
Evidence is defined for canonical U8 and U16 full-packing integer storage only.
InvalidBits
Depth is zero or exceeds the storage width.
NarrowBelowEightBits
Narrow-range codes need at least eight bits.
FormatMismatch
The evidence names a different storage type or signal range than the pixels.
UnsupportedLayout
Scans cover gray, gray-alpha, RGB, BGR, RGBA, BGRA, RGBX, and BGRX layouts only.
Trait Implementations§
Source§impl Clone for ExactDepthError
impl Clone for ExactDepthError
Source§fn clone(&self) -> ExactDepthError
fn clone(&self) -> ExactDepthError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExactDepthError
Source§impl Debug for ExactDepthError
impl Debug for ExactDepthError
Source§impl Display for ExactDepthError
impl Display for ExactDepthError
impl Eq for ExactDepthError
Source§impl Error for ExactDepthError
impl Error for ExactDepthError
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 ExactDepthError
impl PartialEq for ExactDepthError
impl StructuralPartialEq for ExactDepthError
Auto Trait Implementations§
impl Freeze for ExactDepthError
impl RefUnwindSafe for ExactDepthError
impl Send for ExactDepthError
impl Sync for ExactDepthError
impl Unpin for ExactDepthError
impl UnsafeUnpin for ExactDepthError
impl UnwindSafe for ExactDepthError
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