Enum image_canvas::color::Luminance
source · [−]#[non_exhaustive]
pub enum Luminance {
Sdr,
Hdr,
AdobeRgb,
DciP3,
}
Expand description
The reference brightness of the color specification.
FIXME(color): scaling to reference luminance doesn’t have an interface yet.
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.
Sdr
100cd/m².
Hdr
10_000cd/m². Known as high-dynamic range.
AdobeRgb
160cd/m².
DciP3
1000 nits, optimized for projector use.
Trait Implementations
impl Copy for Luminance
impl Eq for Luminance
impl StructuralEq for Luminance
impl StructuralPartialEq for Luminance
Auto Trait Implementations
impl RefUnwindSafe for Luminance
impl Send for Luminance
impl Sync for Luminance
impl Unpin for Luminance
impl UnwindSafe for Luminance
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more