#[non_exhaustive]pub struct VesaTransferCharacteristic {
pub encoding: TransferPointEncoding,
pub points: Vec<f32>,
}Expand description
Decoded VESA Display Transfer Characteristic Data Block (standard tag 0x05).
Encodes the display’s luminance transfer function as a sequence of sample points at evenly-spaced input levels from 0 (black) to 1 (white).
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 encode each luminance point.
points: Vec<f32>Luminance values, normalized to [0.0, 1.0].
Implementations§
Source§impl VesaTransferCharacteristic
impl VesaTransferCharacteristic
Sourcepub fn new(
encoding: TransferPointEncoding,
points: Vec<f32>,
) -> VesaTransferCharacteristic
pub fn new( encoding: TransferPointEncoding, points: Vec<f32>, ) -> VesaTransferCharacteristic
Constructs a VesaTransferCharacteristic.
Trait Implementations§
Source§impl Clone for VesaTransferCharacteristic
impl Clone for VesaTransferCharacteristic
Source§fn clone(&self) -> VesaTransferCharacteristic
fn clone(&self) -> VesaTransferCharacteristic
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 moreSource§impl Debug for VesaTransferCharacteristic
impl Debug for VesaTransferCharacteristic
impl StructuralPartialEq for VesaTransferCharacteristic
Auto Trait Implementations§
impl Freeze for VesaTransferCharacteristic
impl RefUnwindSafe for VesaTransferCharacteristic
impl Send for VesaTransferCharacteristic
impl Sync for VesaTransferCharacteristic
impl Unpin for VesaTransferCharacteristic
impl UnsafeUnpin for VesaTransferCharacteristic
impl UnwindSafe for VesaTransferCharacteristic
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