#[non_exhaustive]pub enum ModeSource {
Vic(u8),
DmtId(u16),
DtdIndex(u8),
}Expand description
The source from which a VideoMode was decoded.
Populated automatically by vic_to_mode and
dmt_to_mode; parsers that decode Detailed Timing
Descriptors should set it via VideoMode::with_source. None for modes
constructed directly via VideoMode::new.
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.
Vic(u8)
A CTA-861 Video Identification Code, as used in Short Video Descriptors, the Y420 Video Data Block, and the Y420 Capability Map Data Block.
DmtId(u16)
A VESA Display Monitor Timings identifier (0x01–0x58).
DtdIndex(u8)
Zero-based index of a Detailed Timing Descriptor within its containing EDID block.
Trait Implementations§
Source§impl Clone for ModeSource
impl Clone for ModeSource
Source§fn clone(&self) -> ModeSource
fn clone(&self) -> ModeSource
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 ModeSource
impl Debug for ModeSource
Source§impl PartialEq for ModeSource
impl PartialEq for ModeSource
impl Copy for ModeSource
impl Eq for ModeSource
impl StructuralPartialEq for ModeSource
Auto Trait Implementations§
impl Freeze for ModeSource
impl RefUnwindSafe for ModeSource
impl Send for ModeSource
impl Sync for ModeSource
impl Unpin for ModeSource
impl UnsafeUnpin for ModeSource
impl UnwindSafe for ModeSource
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