pub struct DisplayMode {
pub hdisplay: u32,
pub vdisplay: u32,
pub clock_khz: u32,
pub hsync_start: u32,
pub hsync_end: u32,
pub htotal: u32,
pub vsync_start: u32,
pub vsync_end: u32,
pub vtotal: u32,
pub vrefresh_mhz: u32,
}Expand description
Display mode (resolution + timing)
Fields§
§hdisplay: u32Horizontal active pixels
vdisplay: u32Vertical active lines
clock_khz: u32Pixel clock in kHz
hsync_start: u32Horizontal sync start
hsync_end: u32Horizontal sync end
htotal: u32Horizontal total
vsync_start: u32Vertical sync start
vsync_end: u32Vertical sync end
vtotal: u32Vertical total
vrefresh_mhz: u32Refresh rate in mHz (millihertz) for integer precision
Trait Implementations§
Source§impl Clone for DisplayMode
impl Clone for DisplayMode
Source§fn clone(&self) -> DisplayMode
fn clone(&self) -> DisplayMode
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DisplayMode
impl Debug for DisplayMode
Source§impl PartialEq for DisplayMode
impl PartialEq for DisplayMode
impl Copy for DisplayMode
impl Eq for DisplayMode
impl StructuralPartialEq for DisplayMode
Auto Trait Implementations§
impl Freeze for DisplayMode
impl RefUnwindSafe for DisplayMode
impl Send for DisplayMode
impl Sync for DisplayMode
impl Unpin for DisplayMode
impl UnwindSafe for DisplayMode
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)