#[non_exhaustive]pub enum CodeMapError {
UnsupportedStorage,
UnsupportedRange(SignalRange),
NarrowBelowEightBits {
bits: u8,
},
FullRangeChromaDepth {
from_bits: u8,
to_bits: u8,
},
LengthMismatch {
source: usize,
destination: usize,
},
}Expand description
A code conversion cannot be performed exactly 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.
UnsupportedStorage
Numerical mapping requires unsigned U8/U16 words.
UnsupportedRange(SignalRange)
The signal range has no defined code rule here.
NarrowBelowEightBits
Narrow-range anchors are not integers below eight bits.
FullRangeChromaDepth
Full-range chroma has no exact neutral/span relation between depths.
LengthMismatch
Source and destination word slices differ in length.
Trait Implementations§
Source§impl Clone for CodeMapError
impl Clone for CodeMapError
Source§fn clone(&self) -> CodeMapError
fn clone(&self) -> CodeMapError
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 CodeMapError
Source§impl Debug for CodeMapError
impl Debug for CodeMapError
Source§impl Display for CodeMapError
impl Display for CodeMapError
impl Eq for CodeMapError
Source§impl Error for CodeMapError
impl Error for CodeMapError
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 CodeMapError
impl PartialEq for CodeMapError
impl StructuralPartialEq for CodeMapError
Auto Trait Implementations§
impl Freeze for CodeMapError
impl RefUnwindSafe for CodeMapError
impl Send for CodeMapError
impl Sync for CodeMapError
impl Unpin for CodeMapError
impl UnsafeUnpin for CodeMapError
impl UnwindSafe for CodeMapError
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