pub enum Resolution {
FullScreenDesktop,
FullScreen((NonZeroU32, NonZeroU32)),
Windowed((NonZeroU32, NonZeroU32)),
}Expand description
Representation of a screen resolution in pixels.
Variants§
FullScreenDesktop
Tells the console to start in full screen mode at the current desktop resolution.
FullScreen((NonZeroU32, NonZeroU32))
Tells the console to start in full screen mode at the given resolution.
Windowed((NonZeroU32, NonZeroU32))
Tells the console to start in windowed mode at the given resolution.
Trait Implementations§
Source§impl Debug for Resolution
impl Debug for Resolution
Source§impl FromStr for Resolution
impl FromStr for Resolution
Source§impl PartialEq for Resolution
impl PartialEq for Resolution
impl StructuralPartialEq for Resolution
Auto Trait Implementations§
impl Freeze for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnsafeUnpin for Resolution
impl UnwindSafe for Resolution
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