DisplayDescriptorRef

Struct DisplayDescriptorRef 

Source
pub struct DisplayDescriptorRef(/* private fields */);

Implementations§

Source§

impl DisplayDescriptorRef

Source

pub fn tag(&self) -> DisplayDescriptorTag

Get the tag of an EDID display descriptor.

Source

pub fn string(&self) -> Option<String>

Get the contents of a product serial number, a data string, or a product name display descriptor.

Returns None if the display descriptor tag isn’t either DI_EDID_DISPLAY_DESCRIPTOR_PRODUCT_SERIAL_NUMBER, DI_EDID_DISPLAY_DESCRIPTOR_DATA_STRING or DI_EDID_DISPLAY_DESCRIPTOR_PRODUCT_NAME.

Source

pub fn range_limits(&self) -> Option<DisplayRangeLimits>

Get the contents of a display range limits descriptor.

Returns None if the display descriptor tag isn’t DI_EDID_DISPLAY_DESCRIPTOR_RANGE_LIMITS.

Source

pub fn standard_timings(&self) -> Option<&[StandardTimingRef]>

Get a standard timing list from an EDID display descriptor.

Returns None if the display descriptor tag isn’t DI_EDID_DISPLAY_DESCRIPTOR_STD_TIMING_IDS.

Source

pub fn color_points(&self) -> impl Iterator<Item = ColorPoint>

Get a color point list from an EDID display descriptor.

Returns None if the display descriptor tag isn’t DI_EDID_DISPLAY_DESCRIPTOR_COLOR_POINT.

Upstream is not aware of any EDID blob containing Color Point Descriptors. If such a blob is found, please share it with upstream!

Source

pub fn established_timings_iii(&self) -> impl Iterator<Item = Timing>

Get a list of established timings III from an EDID display descriptor.

Returns None if the display descriptor tag isn’t DI_EDID_DISPLAY_DESCRIPTOR_ESTABLISHED_TIMINGS_III.

Source

pub fn color_management_data(&self) -> Option<ColorManagementData>

Get the contents of a Display Color Management (DCM) Data descriptor.

Returns None if the display descriptor tag isn’t DI_EDID_DISPLAY_DESCRIPTOR_DCM_DATA.

Upstream is not aware of any EDID blob containing DCM Data descriptors. If such a blob is found, please share it with upstream!

Source

pub fn cvt_timing_codes(&self) -> impl Iterator<Item = CvtTimingCode>

Get a list of CVT timing codes from an EDID display descriptor.

The highest priority code comes first, the lowest priority code last.

Returns None if the display descriptor tag isn’t DI_EDID_DISPLAY_DESCRIPTOR_CVT_TIMING_CODES.

Trait Implementations§

Source§

impl Debug for DisplayDescriptorRef

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.