#[non_exhaustive]pub enum CvtAlgorithm {
Cvt,
CvtRb,
CvtR2,
Reserved(u8),
}Expand description
CVT formula selector for DisplayID 2.x Type IX (0x24) and Type V (0x11)
Formula-Based Timings.
Decoded from byte 0 bits 2:0. Identifies which CVT variant the consumer should use
to derive blanking parameters and pixel clock from the (width, height, refresh_rate)
triple stored on VideoMode. Codes 3–7 are reserved by the DisplayID 2.x spec;
unknown encodings are surfaced as CvtAlgorithm::Reserved so a future spec value
does not block decoding of the rest of the descriptor.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Cvt
Standard CVT (no reduced blanking) (encoding 0).
CvtRb
CVT-RB v1 (encoding 1).
CvtR2
CVT-R2 / CVT-RB v2 (encoding 2).
Reserved(u8)
Spec-reserved encoding (3–7) preserved verbatim so unknown values do not block
decoding of the rest of the descriptor.
Implementations§
Trait Implementations§
Source§impl Clone for CvtAlgorithm
impl Clone for CvtAlgorithm
Source§fn clone(&self) -> CvtAlgorithm
fn clone(&self) -> CvtAlgorithm
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 CvtAlgorithm
impl Debug for CvtAlgorithm
Source§impl PartialEq for CvtAlgorithm
impl PartialEq for CvtAlgorithm
Source§fn eq(&self, other: &CvtAlgorithm) -> bool
fn eq(&self, other: &CvtAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CvtAlgorithm
impl Eq for CvtAlgorithm
impl StructuralPartialEq for CvtAlgorithm
Auto Trait Implementations§
impl Freeze for CvtAlgorithm
impl RefUnwindSafe for CvtAlgorithm
impl Send for CvtAlgorithm
impl Sync for CvtAlgorithm
impl Unpin for CvtAlgorithm
impl UnsafeUnpin for CvtAlgorithm
impl UnwindSafe for CvtAlgorithm
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