pub struct Api {
pub api: Cow<'static, str>,
pub major: u32,
pub minor: u32,
}
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 Ord for Version
impl Ord for Version
§impl PartialOrd for Version
impl PartialOrd for Version
§fn partial_cmp(&self, other: &Version) -> Option<Ordering>
fn partial_cmp(&self, other: &Version) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moreimpl Eq for Version
impl StructuralEq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more