Enum web_sys::WebGpuPowerPreference
source · pub enum WebGpuPowerPreference {
Default,
LowPower,
HighPerformance,
// some variants omitted
}
Variants§
Implementations§
source§impl WebGpuPowerPreference
impl WebGpuPowerPreference
pub fn from_js_value(obj: &JsValue) -> Option<WebGpuPowerPreference>
Trait Implementations§
source§impl Clone for WebGpuPowerPreference
impl Clone for WebGpuPowerPreference
source§fn clone(&self) -> WebGpuPowerPreference
fn clone(&self) -> WebGpuPowerPreference
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 WebGpuPowerPreference
impl Debug for WebGpuPowerPreference
source§impl From<WebGpuPowerPreference> for JsValue
impl From<WebGpuPowerPreference> for JsValue
source§fn from(obj: WebGpuPowerPreference) -> JsValue
fn from(obj: WebGpuPowerPreference) -> JsValue
Converts to this type from the input type.
source§impl FromWasmAbi for WebGpuPowerPreference
impl FromWasmAbi for WebGpuPowerPreference
source§impl IntoWasmAbi for WebGpuPowerPreference
impl IntoWasmAbi for WebGpuPowerPreference
source§impl PartialEq<WebGpuPowerPreference> for WebGpuPowerPreference
impl PartialEq<WebGpuPowerPreference> for WebGpuPowerPreference
source§fn eq(&self, other: &WebGpuPowerPreference) -> bool
fn eq(&self, other: &WebGpuPowerPreference) -> bool
impl Copy for WebGpuPowerPreference
impl StructuralPartialEq for WebGpuPowerPreference
Auto Trait Implementations§
impl RefUnwindSafe for WebGpuPowerPreference
impl Send for WebGpuPowerPreference
impl Sync for WebGpuPowerPreference
impl Unpin for WebGpuPowerPreference
impl UnwindSafe for WebGpuPowerPreference
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more