#[non_exhaustive]pub enum CodePlaneError {
StorageMismatch,
Components,
Geometry,
OutsideActivePlane,
CodeOutOfRange,
}Expand description
Codes cannot be read from a plane as requested.
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.
StorageMismatch
The plane’s sample type differs from the sample encoding’s storage, or is not U8/U16.
Components
The component index is not below the component count, or the plane width/stride is invalid.
Geometry
Buffer slice is too short or misaligned for the declared geometry.
OutsideActivePlane
A requested read or write extends beyond the active plane.
CodeOutOfRange
A written code exceeds (1 << code_bits) - 1.
Trait Implementations§
Source§impl Clone for CodePlaneError
impl Clone for CodePlaneError
Source§fn clone(&self) -> CodePlaneError
fn clone(&self) -> CodePlaneError
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 CodePlaneError
Source§impl Debug for CodePlaneError
impl Debug for CodePlaneError
Source§impl Display for CodePlaneError
impl Display for CodePlaneError
impl Eq for CodePlaneError
Source§impl Error for CodePlaneError
impl Error for CodePlaneError
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 CodePlaneError
impl PartialEq for CodePlaneError
impl StructuralPartialEq for CodePlaneError
Auto Trait Implementations§
impl Freeze for CodePlaneError
impl RefUnwindSafe for CodePlaneError
impl Send for CodePlaneError
impl Sync for CodePlaneError
impl Unpin for CodePlaneError
impl UnsafeUnpin for CodePlaneError
impl UnwindSafe for CodePlaneError
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