Struct piston::Api [−]
Expand description
Stores graphics API version.
Fields
api: Cow<'static, str>
A string identifying the API.
major: u32
Major version.
minor: u32
Minor version.
Implementations
impl Version
impl Version
pub fn is_directx(&self) -> bool
pub fn is_directx(&self) -> bool
Returns true
if the API is DirectX, false
otherwise.
Trait Implementations
impl PartialOrd<Version> for Version
impl PartialOrd<Version> for Version
pub fn partial_cmp(&self, other: &Version) -> Option<Ordering>
pub fn partial_cmp(&self, other: &Version) -> Option<Ordering>
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
impl StructuralEq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations
impl RefUnwindSafe for Version
impl UnwindSafe for Version
Blanket Implementations
Mutably borrows from an owned value. Read more