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]
Trait Implementations
impl Debug for Version
[src]
impl Hash for Version
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl PartialEq for Version
[src]
fn eq(&self, __arg_0: &Version) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Version) -> bool
This method tests for !=
.
impl Eq for Version
[src]
impl Clone for Version
[src]
fn clone(&self) -> Version
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more