Struct sdl2::version::Version
[−]
[src]
pub struct Version {
pub major: u8,
pub minor: u8,
pub patch: u8,
}A structure that contains information about the version of SDL in use.
Fields
major: u8
major version
minor: u8
minor version
patch: u8
update version (patchlevel)
Methods
impl Version[src]
pub fn from_ll(v: SDL_version) -> Version[src]
Convert a raw *SDL_version to Version.
Trait Implementations
impl Copy for Version[src]
impl Clone for Version[src]
fn clone(&self) -> Version[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Eq for Version[src]
impl PartialEq for Version[src]
fn eq(&self, __arg_0: &Version) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Version) -> bool[src]
This method tests for !=.
impl Hash for Version[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more