Enum glutin::NativeMonitorId
source · pub enum NativeMonitorId {
Numeric(u32),
Name(String),
Unavailable,
}
Expand description
Native platform identifier for a monitor. Different platforms use fundamentally different types to represent a monitor ID.
Variants§
Numeric(u32)
Cocoa and X11 use a numeric identifier to represent a monitor.
Name(String)
Win32 uses a Unicode string to represent a monitor.
Other platforms (Android) don’t support monitor identification.
Trait Implementations§
source§impl Clone for NativeMonitorId
impl Clone for NativeMonitorId
source§fn clone(&self) -> NativeMonitorId
fn clone(&self) -> NativeMonitorId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq<NativeMonitorId> for NativeMonitorId
impl PartialEq<NativeMonitorId> for NativeMonitorId
source§fn eq(&self, other: &NativeMonitorId) -> bool
fn eq(&self, other: &NativeMonitorId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NativeMonitorId
impl StructuralEq for NativeMonitorId
impl StructuralPartialEq for NativeMonitorId
Auto Trait Implementations§
impl RefUnwindSafe for NativeMonitorId
impl Send for NativeMonitorId
impl Sync for NativeMonitorId
impl Unpin for NativeMonitorId
impl UnwindSafe for NativeMonitorId
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