#[non_exhaustive]pub struct T10VtdbEntry {
pub width: u16,
pub height: u16,
pub refresh_hz: u16,
pub y420: bool,
}Expand description
A single timing entry from a T10VTDB block.
Type X timings use a CVT formula to derive the full signal, but only the display-facing parameters (resolution and refresh rate) are exposed here.
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.width: u16Horizontal active pixels.
height: u16Vertical active lines.
refresh_hz: u16Vertical refresh rate in Hz (1–1024).
Values above 255 are only possible when the block uses 7- or 8-byte
descriptors (M ≥ 1 in the rev byte).
y420: boolWhen true, this timing also supports YCbCr 4:2:0 sampling (YCC420 flag).
Implementations§
Source§impl T10VtdbEntry
impl T10VtdbEntry
Trait Implementations§
Source§impl Clone for T10VtdbEntry
impl Clone for T10VtdbEntry
Source§fn clone(&self) -> T10VtdbEntry
fn clone(&self) -> T10VtdbEntry
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 T10VtdbEntry
impl Debug for T10VtdbEntry
impl Eq for T10VtdbEntry
Source§impl PartialEq for T10VtdbEntry
impl PartialEq for T10VtdbEntry
impl StructuralPartialEq for T10VtdbEntry
Auto Trait Implementations§
impl Freeze for T10VtdbEntry
impl RefUnwindSafe for T10VtdbEntry
impl Send for T10VtdbEntry
impl Sync for T10VtdbEntry
impl Unpin for T10VtdbEntry
impl UnsafeUnpin for T10VtdbEntry
impl UnwindSafe for T10VtdbEntry
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