Struct rich_sdl2_rust::SdlVersion
source · Expand description
A version for SDL2.
Fields§
§major: u8
A major number in the version.
minor: u8
A minor number in the version.
patch: u8
A patch number in the version.
Trait Implementations§
source§impl Clone for SdlVersion
impl Clone for SdlVersion
source§fn clone(&self) -> SdlVersion
fn clone(&self) -> SdlVersion
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 SdlVersion
impl Debug for SdlVersion
source§impl From<SDL_version> for SdlVersion
impl From<SDL_version> for SdlVersion
source§fn from(_: SDL_version) -> Self
fn from(_: SDL_version) -> Self
Converts to this type from the input type.
source§impl PartialEq<SdlVersion> for SdlVersion
impl PartialEq<SdlVersion> for SdlVersion
source§fn eq(&self, other: &SdlVersion) -> bool
fn eq(&self, other: &SdlVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.