Struct sdl2_sys::SDL_version
source · #[repr(C)]pub struct SDL_version {
pub major: Uint8,
pub minor: Uint8,
pub patch: Uint8,
}
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), and patchlevel (increments with fixes to the minor revision).
\sa SDL_VERSION \sa SDL_GetVersion
Fields§
§major: Uint8
< major version
minor: Uint8
< minor version
patch: Uint8
< 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 moreimpl Copy for SDL_version
Auto Trait Implementations§
impl Freeze for SDL_version
impl RefUnwindSafe for SDL_version
impl Send for SDL_version
impl Sync for SDL_version
impl Unpin for SDL_version
impl UnwindSafe for SDL_version
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