#[repr(transparent)]pub struct WGPUPowerPreference(pub c_int);Tuple Fields§
§0: c_intImplementations§
§impl WGPUPowerPreference
impl WGPUPowerPreference
pub const Undefined: Self = raw::WGPUPowerPreference_WGPUPowerPreference_Undefined
pub const LowPower: Self = raw::WGPUPowerPreference_WGPUPowerPreference_LowPower
pub const HighPerformance: Self = raw::WGPUPowerPreference_WGPUPowerPreference_HighPerformance
Trait Implementations§
Source§impl Clone for WGPUPowerPreference
impl Clone for WGPUPowerPreference
Source§fn clone(&self) -> WGPUPowerPreference
fn clone(&self) -> WGPUPowerPreference
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 WGPUPowerPreference
impl Debug for WGPUPowerPreference
Source§impl Hash for WGPUPowerPreference
impl Hash for WGPUPowerPreference
Source§impl Ord for WGPUPowerPreference
impl Ord for WGPUPowerPreference
Source§fn cmp(&self, other: &WGPUPowerPreference) -> Ordering
fn cmp(&self, other: &WGPUPowerPreference) -> 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 WGPUPowerPreference
impl PartialEq for WGPUPowerPreference
Source§impl PartialOrd for WGPUPowerPreference
impl PartialOrd for WGPUPowerPreference
impl Copy for WGPUPowerPreference
impl Eq for WGPUPowerPreference
impl StructuralPartialEq for WGPUPowerPreference
Auto Trait Implementations§
impl Freeze for WGPUPowerPreference
impl RefUnwindSafe for WGPUPowerPreference
impl Send for WGPUPowerPreference
impl Sync for WGPUPowerPreference
impl Unpin for WGPUPowerPreference
impl UnwindSafe for WGPUPowerPreference
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