pub struct DisplayMode(/* private fields */);Available on crate feature
cg only.Implementations§
Source§impl DisplayMode
impl DisplayMode
pub fn width(&self) -> usize
pub fn height(&self) -> usize
pub fn pixel_width(&self) -> usize
pub fn pixel_height(&self) -> usize
pub fn refresh_rate(&self) -> f64
Trait Implementations§
Source§impl Clone for DisplayMode
impl Clone for DisplayMode
Auto Trait Implementations§
impl !Send for DisplayMode
impl !Sync for DisplayMode
impl Freeze for DisplayMode
impl RefUnwindSafe for DisplayMode
impl Unpin for DisplayMode
impl UnsafeUnpin for DisplayMode
impl UnwindSafe for DisplayMode
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