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 version

minor version

update version (patchlevel)

Methods

impl Version
[src]

Convert a raw *SDL_version to Version.

Trait Implementations

impl Copy for Version
[src]

impl Clone for Version
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Version
[src]

impl PartialEq for Version
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for Version
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Debug for Version
[src]

Formats the value using the given formatter.

impl Display for Version
[src]

Formats the value using the given formatter. Read more