Struct rich_sdl2_rust::display::Mode
source · pub struct Mode {
pub pixel_format: PixelFormatKind,
pub width: u32,
pub height: u32,
pub refresh_rate: u32,
}
Expand description
A mode of the display.
Fields§
§pixel_format: PixelFormatKind
A pixel format of the display.
width: u32
A width of the display.
height: u32
A height of the display.
refresh_rate: u32
A refresh rate of the display.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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