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

major version

minor

minor version

patch

update version (patchlevel)

Methods

impl Version

fn from_ll(v: SDL_version) -> Version

Convert a raw *SDL_version to Version.

Trait Implementations

impl Display for Version

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Debug for Version

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for Version

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl PartialEq for Version

fn eq(&self, __arg_0: &Version) -> bool

fn ne(&self, __arg_0: &Version) -> bool

impl Eq for Version

impl Clone for Version

fn clone(&self) -> Version

fn clone_from(&mut self, source: &Self)

impl Copy for Version