#[non_exhaustive]pub enum CodeRole {
Intensity,
Chroma,
Alpha,
}Expand description
What a component’s codes mean, which selects its depth-conversion rule.
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.
Intensity
R′G′B′, gray or Y′: zero is black; the signal range selects white.
Chroma
Cb or Cr: a signed offset from a neutral code that scales with depth.
Alpha
Coverage: always full scale, whatever the color signal range.
Trait Implementations§
impl Copy for CodeRole
impl Eq for CodeRole
impl StructuralPartialEq for CodeRole
Auto Trait Implementations§
impl Freeze for CodeRole
impl RefUnwindSafe for CodeRole
impl Send for CodeRole
impl Sync for CodeRole
impl Unpin for CodeRole
impl UnsafeUnpin for CodeRole
impl UnwindSafe for CodeRole
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