#[non_exhaustive]pub enum TransferCurve {
Luminance(Vec<f32>),
Rgb {
red: Vec<f32>,
green: Vec<f32>,
blue: Vec<f32>,
},
}Expand description
Transfer curve sample data decoded from the DisplayID Transfer Characteristics
Block (0x0E).
Sample values are normalized to [0.0, 1.0] and represent evenly-spaced input
levels from black (0) to white (1).
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.
Luminance(Vec<f32>)
Single luminance transfer curve (grayscale / single-channel mode).
Rgb
Separate per-primary transfer curves (multi-channel mode, byte 0 bit 5 set).
Trait Implementations§
Source§impl Clone for TransferCurve
impl Clone for TransferCurve
Source§fn clone(&self) -> TransferCurve
fn clone(&self) -> TransferCurve
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransferCurve
impl Debug for TransferCurve
Source§impl PartialEq for TransferCurve
impl PartialEq for TransferCurve
impl StructuralPartialEq for TransferCurve
Auto Trait Implementations§
impl Freeze for TransferCurve
impl RefUnwindSafe for TransferCurve
impl Send for TransferCurve
impl Sync for TransferCurve
impl Unpin for TransferCurve
impl UnsafeUnpin for TransferCurve
impl UnwindSafe for TransferCurve
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