#[repr(u8)]pub enum PreferredDeviceType {
Other = 0,
Integrated = 1,
Discrete = 2,
VirtualGpu = 3,
Cpu = 4,
}
Variants§
Trait Implementations§
Source§impl Clone for PreferredDeviceType
impl Clone for PreferredDeviceType
Source§fn clone(&self) -> PreferredDeviceType
fn clone(&self) -> PreferredDeviceType
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 moreSource§impl Debug for PreferredDeviceType
impl Debug for PreferredDeviceType
Source§impl Default for PreferredDeviceType
impl Default for PreferredDeviceType
Source§fn default() -> PreferredDeviceType
fn default() -> PreferredDeviceType
Returns the “default value” for a type. Read more
Source§impl Ord for PreferredDeviceType
impl Ord for PreferredDeviceType
Source§fn cmp(&self, other: &PreferredDeviceType) -> Ordering
fn cmp(&self, other: &PreferredDeviceType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PreferredDeviceType
impl PartialEq for PreferredDeviceType
Source§impl PartialOrd for PreferredDeviceType
impl PartialOrd for PreferredDeviceType
impl Copy for PreferredDeviceType
impl Eq for PreferredDeviceType
impl StructuralPartialEq for PreferredDeviceType
Auto Trait Implementations§
impl Freeze for PreferredDeviceType
impl RefUnwindSafe for PreferredDeviceType
impl Send for PreferredDeviceType
impl Sync for PreferredDeviceType
impl Unpin for PreferredDeviceType
impl UnwindSafe for PreferredDeviceType
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