Enum glutin_winit::ApiPreference
source · pub enum ApiPreference {
PreferEgl,
FallbackEgl,
}
Expand description
Simplified version of the DisplayApiPreference
which is used to simplify
cross platform window creation.
To learn about platform differences the DisplayApiPreference
variants.
Variants§
PreferEgl
Prefer EGL
over system provider like GLX
and WGL
.
FallbackEgl
Fallback to EGL
when failed to create the system profile.
This behavior is used by default. However consider using
Self::PreferEgl
if you don’t care about missing EGL features.
Trait Implementations§
source§impl Clone for ApiPreference
impl Clone for ApiPreference
source§fn clone(&self) -> ApiPreference
fn clone(&self) -> ApiPreference
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 ApiPreference
impl Debug for ApiPreference
source§impl Default for ApiPreference
impl Default for ApiPreference
source§fn default() -> ApiPreference
fn default() -> ApiPreference
Returns the “default value” for a type. Read more
source§impl PartialEq for ApiPreference
impl PartialEq for ApiPreference
source§fn eq(&self, other: &ApiPreference) -> bool
fn eq(&self, other: &ApiPreference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ApiPreference
impl Eq for ApiPreference
impl StructuralPartialEq for ApiPreference
Auto Trait Implementations§
impl Freeze for ApiPreference
impl RefUnwindSafe for ApiPreference
impl Send for ApiPreference
impl Sync for ApiPreference
impl Unpin for ApiPreference
impl UnwindSafe for ApiPreference
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