Struct fermium::version::SDL_version
source · #[repr(C)]pub struct SDL_version {
pub major: u8,
pub minor: u8,
pub patch: u8,
}
Expand description
Information about the version of SDL in use.
Represents the library’s version as three levels:
- major revision (increments with massive changes, additions, and enhancements)
- minor revision (increments with backwards-compatible changes to the major revision)
- patchlevel (increments with fixes to the minor revision).
See Also: SDL_VERSION
, SDL_GetVersion
To Be Clear: The SDL library doesn’t subscribe to SemVer.
Fields§
§major: u8
major version
minor: u8
minor version
patch: u8
update version
Trait Implementations§
source§impl Clone for SDL_version
impl Clone for SDL_version
source§fn clone(&self) -> SDL_version
fn clone(&self) -> SDL_version
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_version
impl Debug for SDL_version
source§impl Hash for SDL_version
impl Hash for SDL_version
source§impl Ord for SDL_version
impl Ord for SDL_version
source§fn cmp(&self, other: &SDL_version) -> Ordering
fn cmp(&self, other: &SDL_version) -> 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_version> for SDL_version
impl PartialEq<SDL_version> for SDL_version
source§fn eq(&self, other: &SDL_version) -> bool
fn eq(&self, other: &SDL_version) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SDL_version> for SDL_version
impl PartialOrd<SDL_version> for SDL_version
source§fn partial_cmp(&self, other: &SDL_version) -> Option<Ordering>
fn partial_cmp(&self, other: &SDL_version) -> 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 more