Enum OpenGLClientApi
#[non_exhaustive]pub enum OpenGLClientApi {
Unspecified,
Gl,
Gles,
Unknown(u32),
}Expand description
OpenGL client API a dedicated EGL session creates its context for.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unspecified
No client API is named.
Gl
Desktop OpenGL, as EGL_OPENGL_API names it.
Gles
OpenGL ES, as EGL_OPENGL_ES_API names it.
Unknown(u32)
Implementations§
§impl OpenGLClientApi
impl OpenGLClientApi
pub fn from_raw(raw: u32) -> OpenGLClientApi
pub fn as_raw(self) -> u32
Trait Implementations§
§impl Clone for OpenGLClientApi
impl Clone for OpenGLClientApi
§fn clone(&self) -> OpenGLClientApi
fn clone(&self) -> OpenGLClientApi
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 more§impl Debug for OpenGLClientApi
impl Debug for OpenGLClientApi
§impl Default for OpenGLClientApi
impl Default for OpenGLClientApi
§fn default() -> OpenGLClientApi
fn default() -> OpenGLClientApi
Returns the “default value” for a type. Read more
§impl Hash for OpenGLClientApi
impl Hash for OpenGLClientApi
§impl PartialEq for OpenGLClientApi
impl PartialEq for OpenGLClientApi
impl Copy for OpenGLClientApi
impl Eq for OpenGLClientApi
impl StructuralPartialEq for OpenGLClientApi
Auto Trait Implementations§
impl Freeze for OpenGLClientApi
impl RefUnwindSafe for OpenGLClientApi
impl Send for OpenGLClientApi
impl Sync for OpenGLClientApi
impl Unpin for OpenGLClientApi
impl UnsafeUnpin for OpenGLClientApi
impl UnwindSafe for OpenGLClientApi
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