pub struct DisplayGamma(/* private fields */);Expand description
Display gamma, decoded from EDID base block byte 0x17.
Gamma is encoded as (value * 100) - 100, so a stored byte of 120 represents
gamma 2.20. A byte value of 0xFF means gamma is undefined; use None on
DisplayCapabilities in that case.
Implementations§
Source§impl DisplayGamma
impl DisplayGamma
Sourcepub fn from_edid_byte(byte: u8) -> Option<DisplayGamma>
pub fn from_edid_byte(byte: u8) -> Option<DisplayGamma>
Decodes EDID byte 0x17 into a DisplayGamma.
Returns None if the byte is 0xFF (gamma not specified).
Trait Implementations§
Source§impl Clone for DisplayGamma
impl Clone for DisplayGamma
Source§fn clone(&self) -> DisplayGamma
fn clone(&self) -> DisplayGamma
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 DisplayGamma
impl Debug for DisplayGamma
Source§impl PartialEq for DisplayGamma
impl PartialEq for DisplayGamma
impl Copy for DisplayGamma
impl Eq for DisplayGamma
impl StructuralPartialEq for DisplayGamma
Auto Trait Implementations§
impl Freeze for DisplayGamma
impl RefUnwindSafe for DisplayGamma
impl Send for DisplayGamma
impl Sync for DisplayGamma
impl Unpin for DisplayGamma
impl UnsafeUnpin for DisplayGamma
impl UnwindSafe for DisplayGamma
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