#[non_exhaustive]pub enum SampleEncodingError {
UnsupportedStorage,
InvalidBitDepth,
InvalidBitShift,
}Expand description
Full re-export of zenpixels core types (zero module name collisions!).
An integer sample description cannot fit its declared storage.
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
The storage type is not an integer.
InvalidBitDepth
Code depth is zero or exceeds storage width.
InvalidBitShift
Code depth plus low padding exceeds storage width.
Trait Implementations§
Source§impl Clone for SampleEncodingError
impl Clone for SampleEncodingError
Source§fn clone(&self) -> SampleEncodingError
fn clone(&self) -> SampleEncodingError
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 SampleEncodingError
Source§impl Debug for SampleEncodingError
impl Debug for SampleEncodingError
Source§impl Display for SampleEncodingError
impl Display for SampleEncodingError
impl Eq for SampleEncodingError
Source§impl Error for SampleEncodingError
impl Error for SampleEncodingError
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 SampleEncodingError
impl PartialEq for SampleEncodingError
impl StructuralPartialEq for SampleEncodingError
Auto Trait Implementations§
impl Freeze for SampleEncodingError
impl RefUnwindSafe for SampleEncodingError
impl Send for SampleEncodingError
impl Sync for SampleEncodingError
impl Unpin for SampleEncodingError
impl UnsafeUnpin for SampleEncodingError
impl UnwindSafe for SampleEncodingError
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