Struct vulkano::instance::Version [] [src]

pub struct Version {
    pub major: u16,
    pub minor: u16,
    pub patch: u16,
}

Represents an API version of Vulkan.

Fields

Major version number.

Minor version number.

Patch version number.

Methods

impl Version
[src]

Turns a version number given by Vulkan into a Version struct.

Turns a Version into a version number accepted by Vulkan.

Panic

Panics if the values in the Version are out of acceptable range.

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 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 Eq for Version
[src]

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

impl PartialOrd for Version
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Version
[src]

This method returns an Ordering between self and other. Read more