Enum eframe::HardwareAcceleration
source · pub enum HardwareAcceleration {
Required,
Preferred,
Off,
}
Expand description
Selects the level of hardware graphics acceleration.
Variants§
Required
Require graphics acceleration.
Preferred
Prefer graphics acceleration, but fall back to software.
Off
Do NOT use graphics acceleration.
On some platforms (MacOS) this is ignored and treated the same as Self::Preferred
.
Trait Implementations§
source§impl Clone for HardwareAcceleration
impl Clone for HardwareAcceleration
source§fn clone(&self) -> HardwareAcceleration
fn clone(&self) -> HardwareAcceleration
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 HardwareAcceleration
impl Debug for HardwareAcceleration
source§impl Hash for HardwareAcceleration
impl Hash for HardwareAcceleration
source§impl PartialEq<HardwareAcceleration> for HardwareAcceleration
impl PartialEq<HardwareAcceleration> for HardwareAcceleration
source§fn eq(&self, other: &HardwareAcceleration) -> bool
fn eq(&self, other: &HardwareAcceleration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for HardwareAcceleration
impl Eq for HardwareAcceleration
impl StructuralEq for HardwareAcceleration
impl StructuralPartialEq for HardwareAcceleration
Auto Trait Implementations§
impl RefUnwindSafe for HardwareAcceleration
impl Send for HardwareAcceleration
impl Sync for HardwareAcceleration
impl Unpin for HardwareAcceleration
impl UnwindSafe for HardwareAcceleration
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.