pub enum OpenGlVersion {
Available {
api: OpenGlApi,
major: u8,
minor: u8,
},
Unavailable {
version_string: String,
},
}Expand description
Represents the parsed version of the OpenGL version string.
Returned by
GraphicsContext::get_opengl_version.
Variants§
Available
Represents a version of the OpenGL api.
Fields
This is what is returned when the OpenGL version string can’t
be read. Please open an issue at
https://github.com/neonmoe/fae
and provide the value of version_string if you come across
this.
Trait Implementations§
Source§impl Clone for OpenGlVersion
impl Clone for OpenGlVersion
Source§fn clone(&self) -> OpenGlVersion
fn clone(&self) -> OpenGlVersion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenGlVersion
impl Debug for OpenGlVersion
Source§impl PartialEq for OpenGlVersion
impl PartialEq for OpenGlVersion
impl StructuralPartialEq for OpenGlVersion
Auto Trait Implementations§
impl Freeze for OpenGlVersion
impl RefUnwindSafe for OpenGlVersion
impl Send for OpenGlVersion
impl Sync for OpenGlVersion
impl Unpin for OpenGlVersion
impl UnwindSafe for OpenGlVersion
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