Enum web_sys::GpuPowerPreference
source · [−]pub enum GpuPowerPreference {
LowPower,
HighPerformance,
// some variants omitted
}
Expand description
The GpuPowerPreference
enum.
This API requires the following crate features to be activated: GpuPowerPreference
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Variants
LowPower
HighPerformance
Implementations
sourceimpl GpuPowerPreference
impl GpuPowerPreference
pub fn from_js_value(obj: &JsValue) -> Option<GpuPowerPreference>
Trait Implementations
sourceimpl Clone for GpuPowerPreference
impl Clone for GpuPowerPreference
sourcefn clone(&self) -> GpuPowerPreference
fn clone(&self) -> GpuPowerPreference
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GpuPowerPreference
impl Debug for GpuPowerPreference
sourceimpl From<GpuPowerPreference> for JsValue
impl From<GpuPowerPreference> for JsValue
sourcefn from(obj: GpuPowerPreference) -> JsValue
fn from(obj: GpuPowerPreference) -> JsValue
Converts to this type from the input type.
sourceimpl FromWasmAbi for GpuPowerPreference
impl FromWasmAbi for GpuPowerPreference
sourceimpl IntoWasmAbi for GpuPowerPreference
impl IntoWasmAbi for GpuPowerPreference
sourceimpl PartialEq<GpuPowerPreference> for GpuPowerPreference
impl PartialEq<GpuPowerPreference> for GpuPowerPreference
sourcefn eq(&self, other: &GpuPowerPreference) -> bool
fn eq(&self, other: &GpuPowerPreference) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl WasmDescribe for GpuPowerPreference
impl WasmDescribe for GpuPowerPreference
impl Copy for GpuPowerPreference
impl Eq for GpuPowerPreference
impl StructuralEq for GpuPowerPreference
impl StructuralPartialEq for GpuPowerPreference
Auto Trait Implementations
impl RefUnwindSafe for GpuPowerPreference
impl Send for GpuPowerPreference
impl Sync for GpuPowerPreference
impl Unpin for GpuPowerPreference
impl UnwindSafe for GpuPowerPreference
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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
sourcefn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more