Struct fermium::video::SDL_DisplayEventID
source · #[repr(transparent)]pub struct SDL_DisplayEventID(pub u8);
Expand description
Event subtype for display events.
Technically a u32
, altered to be u8
to better fit with the usage within
the API.
Tuple Fields§
§0: u8
Trait Implementations§
source§impl Clone for SDL_DisplayEventID
impl Clone for SDL_DisplayEventID
source§fn clone(&self) -> SDL_DisplayEventID
fn clone(&self) -> SDL_DisplayEventID
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 Debug for SDL_DisplayEventID
impl Debug for SDL_DisplayEventID
source§impl Default for SDL_DisplayEventID
impl Default for SDL_DisplayEventID
source§fn default() -> SDL_DisplayEventID
fn default() -> SDL_DisplayEventID
Returns the “default value” for a type. Read more
source§impl Hash for SDL_DisplayEventID
impl Hash for SDL_DisplayEventID
source§impl Ord for SDL_DisplayEventID
impl Ord for SDL_DisplayEventID
source§fn cmp(&self, other: &SDL_DisplayEventID) -> Ordering
fn cmp(&self, other: &SDL_DisplayEventID) -> 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_DisplayEventID> for SDL_DisplayEventID
impl PartialEq<SDL_DisplayEventID> for SDL_DisplayEventID
source§fn eq(&self, other: &SDL_DisplayEventID) -> bool
fn eq(&self, other: &SDL_DisplayEventID) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SDL_DisplayEventID> for SDL_DisplayEventID
impl PartialOrd<SDL_DisplayEventID> for SDL_DisplayEventID
source§fn partial_cmp(&self, other: &SDL_DisplayEventID) -> Option<Ordering>
fn partial_cmp(&self, other: &SDL_DisplayEventID) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SDL_DisplayEventID
impl Eq for SDL_DisplayEventID
impl StructuralEq for SDL_DisplayEventID
impl StructuralPartialEq for SDL_DisplayEventID
Auto Trait Implementations§
impl RefUnwindSafe for SDL_DisplayEventID
impl Send for SDL_DisplayEventID
impl Sync for SDL_DisplayEventID
impl Unpin for SDL_DisplayEventID
impl UnwindSafe for SDL_DisplayEventID
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