#[non_exhaustive]pub struct StereoTimingCode {
pub code_type: StereoTimingCodeType,
pub code: u8,
}Expand description
One timing code entry from the inline list in a DisplayID 2.x block 0x27.
Constructed via StereoTimingCode::new.
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.code_type: StereoTimingCodeTypeTable to look up code in.
code: u81-byte timing code (DMT ID, CTA VIC, or HDMI VIC).
Implementations§
Source§impl StereoTimingCode
impl StereoTimingCode
Sourcepub fn new(code_type: StereoTimingCodeType, code: u8) -> Self
pub fn new(code_type: StereoTimingCodeType, code: u8) -> Self
Constructs a timing code entry.
Trait Implementations§
Source§impl Clone for StereoTimingCode
impl Clone for StereoTimingCode
Source§fn clone(&self) -> StereoTimingCode
fn clone(&self) -> StereoTimingCode
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 StereoTimingCode
impl Debug for StereoTimingCode
Source§impl PartialEq for StereoTimingCode
impl PartialEq for StereoTimingCode
Source§fn eq(&self, other: &StereoTimingCode) -> bool
fn eq(&self, other: &StereoTimingCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for StereoTimingCode
impl Eq for StereoTimingCode
impl StructuralPartialEq for StereoTimingCode
Auto Trait Implementations§
impl Freeze for StereoTimingCode
impl RefUnwindSafe for StereoTimingCode
impl Send for StereoTimingCode
impl Sync for StereoTimingCode
impl Unpin for StereoTimingCode
impl UnsafeUnpin for StereoTimingCode
impl UnwindSafe for StereoTimingCode
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