#[non_exhaustive]pub struct DisplayIdTransferCharacteristic {
pub encoding: TransferPointEncoding,
pub curve: TransferCurve,
}Expand description
Decoded Transfer Characteristics Block (DisplayID 1.x 0x0E).
Encodes the display’s native luminance transfer function as a sequence of sample
points at evenly-spaced input levels from 0 (black) to 1 (white). Stored in
crate::DisplayCapabilities::transfer_characteristic.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.encoding: TransferPointEncodingBit depth used to pack each sample value.
curve: TransferCurveSample data — either a single luminance curve or separate R, G, B curves.
Implementations§
Source§impl DisplayIdTransferCharacteristic
impl DisplayIdTransferCharacteristic
Sourcepub fn new(encoding: TransferPointEncoding, curve: TransferCurve) -> Self
pub fn new(encoding: TransferPointEncoding, curve: TransferCurve) -> Self
Constructs a DisplayIdTransferCharacteristic from its decoded fields.
Trait Implementations§
Source§impl Clone for DisplayIdTransferCharacteristic
impl Clone for DisplayIdTransferCharacteristic
Source§fn clone(&self) -> DisplayIdTransferCharacteristic
fn clone(&self) -> DisplayIdTransferCharacteristic
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 PartialEq for DisplayIdTransferCharacteristic
impl PartialEq for DisplayIdTransferCharacteristic
Source§fn eq(&self, other: &DisplayIdTransferCharacteristic) -> bool
fn eq(&self, other: &DisplayIdTransferCharacteristic) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DisplayIdTransferCharacteristic
Auto Trait Implementations§
impl Freeze for DisplayIdTransferCharacteristic
impl RefUnwindSafe for DisplayIdTransferCharacteristic
impl Send for DisplayIdTransferCharacteristic
impl Sync for DisplayIdTransferCharacteristic
impl Unpin for DisplayIdTransferCharacteristic
impl UnsafeUnpin for DisplayIdTransferCharacteristic
impl UnwindSafe for DisplayIdTransferCharacteristic
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