#[non_exhaustive]pub enum PixelLayoutError {
PlaneCountMismatch,
PlaneRowsMismatch,
PlaneRowBytesMismatch,
Geometry(GeometryError),
Arithmetic(MathError),
}Expand description
A failure while relating a pixel layout to concrete planes.
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.
PlaneCountMismatch
The concrete plane count did not match the pixel layout.
PlaneRowsMismatch
A plane row count did not match its logical sampled height.
PlaneRowBytesMismatch
A plane’s used row bytes did not match its exact packed width.
Geometry(GeometryError)
Geometry validation failed.
Arithmetic(MathError)
Checked row-size arithmetic failed.
Trait Implementations§
Source§impl Clone for PixelLayoutError
impl Clone for PixelLayoutError
impl Copy for PixelLayoutError
Source§impl Debug for PixelLayoutError
impl Debug for PixelLayoutError
Source§impl Display for PixelLayoutError
impl Display for PixelLayoutError
impl Eq for PixelLayoutError
Source§impl Error for PixelLayoutError
impl Error for PixelLayoutError
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<GeometryError> for PixelLayoutError
impl From<GeometryError> for PixelLayoutError
Source§fn from(error: GeometryError) -> Self
fn from(error: GeometryError) -> Self
Converts to this type from the input type.
Source§impl Hash for PixelLayoutError
impl Hash for PixelLayoutError
Source§impl PartialEq for PixelLayoutError
impl PartialEq for PixelLayoutError
impl StructuralPartialEq for PixelLayoutError
Auto Trait Implementations§
impl Freeze for PixelLayoutError
impl RefUnwindSafe for PixelLayoutError
impl Send for PixelLayoutError
impl Sync for PixelLayoutError
impl Unpin for PixelLayoutError
impl UnsafeUnpin for PixelLayoutError
impl UnwindSafe for PixelLayoutError
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