#[repr(transparent)]pub struct SDL_DisplayID(pub Uint32);Expand description
This is a unique ID for a display for the time it is connected to the system, and is never reused for the lifetime of the application.
If the display is disconnected and reconnected, it will get a new ID.
The value 0 is an invalid ID.
§Availability
This datatype is available since SDL 3.2.0.
Tuple Fields§
§0: Uint32Trait Implementations§
Source§impl Clone for SDL_DisplayID
impl Clone for SDL_DisplayID
Source§fn clone(&self) -> SDL_DisplayID
fn clone(&self) -> SDL_DisplayID
Returns a duplicate 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 Debug for SDL_DisplayID
impl Debug for SDL_DisplayID
Source§impl Default for SDL_DisplayID
impl Default for SDL_DisplayID
Source§fn default() -> SDL_DisplayID
fn default() -> SDL_DisplayID
Returns the “default value” for a type. Read more
Source§impl From<SDL_DisplayID> for Uint32
impl From<SDL_DisplayID> for Uint32
Source§fn from(value: SDL_DisplayID) -> Self
fn from(value: SDL_DisplayID) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_DisplayID
Available on crate feature metadata only.
impl GroupMetadata for SDL_DisplayID
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_DisplayID
impl Hash for SDL_DisplayID
Source§impl Ord for SDL_DisplayID
impl Ord for SDL_DisplayID
Source§fn cmp(&self, other: &SDL_DisplayID) -> Ordering
fn cmp(&self, other: &SDL_DisplayID) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<SDL_DisplayID> for Uint32
impl PartialEq<SDL_DisplayID> for Uint32
Source§impl PartialEq<u32> for SDL_DisplayID
impl PartialEq<u32> for SDL_DisplayID
Source§impl PartialEq for SDL_DisplayID
impl PartialEq for SDL_DisplayID
Source§impl PartialOrd for SDL_DisplayID
impl PartialOrd for SDL_DisplayID
impl Copy for SDL_DisplayID
impl Eq for SDL_DisplayID
impl StructuralPartialEq for SDL_DisplayID
Auto Trait Implementations§
impl Freeze for SDL_DisplayID
impl RefUnwindSafe for SDL_DisplayID
impl Send for SDL_DisplayID
impl Sync for SDL_DisplayID
impl Unpin for SDL_DisplayID
impl UnwindSafe for SDL_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