#[non_exhaustive]pub struct Display {
pub id: String,
pub name: String,
pub width: u32,
pub height: u32,
}Expand description
A display reported by displays.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringOpaque identifier: pass to Source::Display.
name: StringHuman-readable name, e.g. “Display 1”.
width: u32Width in the platform’s desktop coordinate space: points on macOS and desktop pixels on Windows and X11.
height: u32Height in the platform’s desktop coordinate space: points on macOS and desktop pixels on Windows and X11.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Display
impl RefUnwindSafe for Display
impl Send for Display
impl Sync for Display
impl Unpin for Display
impl UnsafeUnpin for Display
impl UnwindSafe for Display
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