pub struct DisplayId(/* private fields */);Expand description
A unique identifier for a display. It is used to track displays across different platforms.
§Platform-specific
- Windows: The id is device path.
- macOS: The id is a value of
CGDirectDisplayID.
Implementations§
Source§impl DisplayId
impl DisplayId
Sourcepub fn windows_id(&self) -> &PlatformDisplayId
pub fn windows_id(&self) -> &PlatformDisplayId
Returns the Windows-specific display id.
Trait Implementations§
Source§impl From<WindowsDisplayId> for DisplayId
impl From<WindowsDisplayId> for DisplayId
Source§fn from(value: PlatformDisplayId) -> Self
fn from(value: PlatformDisplayId) -> Self
Converts to this type from the input type.
impl Eq for DisplayId
impl StructuralPartialEq for DisplayId
Auto Trait Implementations§
impl Freeze for DisplayId
impl RefUnwindSafe for DisplayId
impl Send for DisplayId
impl Sync for DisplayId
impl Unpin for DisplayId
impl UnwindSafe for DisplayId
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