pub struct Display {
pub id: String,
pub name: String,
pub width: u32,
pub height: u32,
}Expand description
A display reported by displays.
Fields§
§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