#[repr(i32)]pub enum WGPUPowerPreference {
Undefined = 0,
LowPower = 1,
HighPerformance = 2,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for WGPUPowerPreference
impl Clone for WGPUPowerPreference
Source§fn clone(&self) -> WGPUPowerPreference
fn clone(&self) -> WGPUPowerPreference
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 WGPUPowerPreference
impl Debug for WGPUPowerPreference
Source§impl Display for WGPUPowerPreference
impl Display for WGPUPowerPreference
Source§impl<'_derivative_strum> From<&'_derivative_strum WGPUPowerPreference> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum WGPUPowerPreference> for &'static str
Source§fn from(x: &'_derivative_strum WGPUPowerPreference) -> &'static str
fn from(x: &'_derivative_strum WGPUPowerPreference) -> &'static str
Converts to this type from the input type.
Source§impl From<WGPUPowerPreference> for &'static str
impl From<WGPUPowerPreference> for &'static str
Source§fn from(x: WGPUPowerPreference) -> &'static str
fn from(x: WGPUPowerPreference) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for WGPUPowerPreference
impl FromStr for WGPUPowerPreference
Source§impl Hash for WGPUPowerPreference
impl Hash for WGPUPowerPreference
Source§impl PartialEq for WGPUPowerPreference
impl PartialEq for WGPUPowerPreference
Source§impl TryFrom<&str> for WGPUPowerPreference
impl TryFrom<&str> 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