pub struct OpenGLContextProfile(/* private fields */);Expand description
C++ enum: QSurfaceFormat::OpenGLContextProfile.
Implementations§
Source§impl OpenGLContextProfile
impl OpenGLContextProfile
Sourcepub const NoProfile: OpenGLContextProfile
pub const NoProfile: OpenGLContextProfile
C++ enum variant: NoProfile = 0
Sourcepub const CoreProfile: OpenGLContextProfile
pub const CoreProfile: OpenGLContextProfile
C++ enum variant: CoreProfile = 1
Sourcepub const CompatibilityProfile: OpenGLContextProfile
pub const CompatibilityProfile: OpenGLContextProfile
C++ enum variant: CompatibilityProfile = 2
Trait Implementations§
Source§impl Clone for OpenGLContextProfile
impl Clone for OpenGLContextProfile
Source§fn clone(&self) -> OpenGLContextProfile
fn clone(&self) -> OpenGLContextProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OpenGLContextProfile
impl Debug for OpenGLContextProfile
Source§impl From<OpenGLContextProfile> for c_int
impl From<OpenGLContextProfile> for c_int
Source§fn from(value: OpenGLContextProfile) -> Self
fn from(value: OpenGLContextProfile) -> Self
Converts to this type from the input type.
Source§impl From<i32> for OpenGLContextProfile
impl From<i32> for OpenGLContextProfile
Source§impl PartialEq for OpenGLContextProfile
impl PartialEq for OpenGLContextProfile
Source§fn eq(&self, other: &OpenGLContextProfile) -> bool
fn eq(&self, other: &OpenGLContextProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OpenGLContextProfile
impl Eq for OpenGLContextProfile
impl StructuralPartialEq for OpenGLContextProfile
Auto Trait Implementations§
impl Freeze for OpenGLContextProfile
impl RefUnwindSafe for OpenGLContextProfile
impl Send for OpenGLContextProfile
impl Sync for OpenGLContextProfile
impl Unpin for OpenGLContextProfile
impl UnsafeUnpin for OpenGLContextProfile
impl UnwindSafe for OpenGLContextProfile
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