Struct vulkano::instance::Version [−][src]
Represents an API version of Vulkan.
Fields
major: u16
Major version number.
minor: u16
Minor version number.
patch: u16
Patch version number.
Methods
impl Version
[src]
impl Version
pub fn from_vulkan_version(value: u32) -> Version
[src]
pub fn from_vulkan_version(value: u32) -> Version
Turns a version number given by Vulkan into a Version
struct.
pub fn into_vulkan_version(&self) -> u32
[src]
pub fn into_vulkan_version(&self) -> u32
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 Copy for Version
impl Clone for Version
[src]
impl Clone for Version
fn clone(&self) -> Version
[src]
fn clone(&self) -> Version
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for Version
[src]
impl PartialEq for Version
fn eq(&self, other: &Version) -> bool
[src]
fn eq(&self, other: &Version) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Version) -> bool
[src]
fn ne(&self, other: &Version) -> bool
This method tests for !=
.
impl Eq for Version
[src]
impl Eq for Version
impl Debug for Version
[src]
impl Debug for Version
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Version
[src]
impl Display for Version
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialOrd for Version
[src]
impl PartialOrd for Version
fn partial_cmp(&self, other: &Version) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Version) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
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]
impl Ord for Version
fn cmp(&self, other: &Version) -> Ordering
[src]
fn cmp(&self, other: &Version) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more