pub enum RequestedOpenGLVersion {
OpenGL(Option<(u8, u8)>),
OpenGLES(Option<(u8, u8)>),
}
Expand description
Internal enum to specify which version of OpenGL to request from the windowing system.
Variants§
Trait Implementations§
Source§impl Clone for RequestedOpenGLVersion
impl Clone for RequestedOpenGLVersion
Source§fn clone(&self) -> RequestedOpenGLVersion
fn clone(&self) -> RequestedOpenGLVersion
Returns a copy 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 RequestedOpenGLVersion
impl Debug for RequestedOpenGLVersion
Source§impl From<RequestedOpenGLVersion> for RequestedGraphicsAPI
impl From<RequestedOpenGLVersion> for RequestedGraphicsAPI
Source§fn from(version: RequestedOpenGLVersion) -> Self
fn from(version: RequestedOpenGLVersion) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RequestedOpenGLVersion
impl PartialEq for RequestedOpenGLVersion
Source§impl TryFrom<RequestedGraphicsAPI> for RequestedOpenGLVersion
impl TryFrom<RequestedGraphicsAPI> for RequestedOpenGLVersion
Source§type Error = PlatformError
type Error = PlatformError
The type returned in the event of a conversion error.
impl StructuralPartialEq for RequestedOpenGLVersion
Auto Trait Implementations§
impl Freeze for RequestedOpenGLVersion
impl RefUnwindSafe for RequestedOpenGLVersion
impl Send for RequestedOpenGLVersion
impl Sync for RequestedOpenGLVersion
impl Unpin for RequestedOpenGLVersion
impl UnwindSafe for RequestedOpenGLVersion
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