pub enum WebGLPowerPreference {
Default,
HighPerformance,
LowPower,
}
Variants§
Trait Implementations§
Source§impl Clone for WebGLPowerPreference
impl Clone for WebGLPowerPreference
Source§fn clone(&self) -> WebGLPowerPreference
fn clone(&self) -> WebGLPowerPreference
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 WebGLPowerPreference
impl Debug for WebGLPowerPreference
Source§impl<'de> Deserialize<'de> for WebGLPowerPreference
impl<'de> Deserialize<'de> for WebGLPowerPreference
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for WebGLPowerPreference
impl Hash for WebGLPowerPreference
Source§impl Ord for WebGLPowerPreference
impl Ord for WebGLPowerPreference
Source§fn cmp(&self, other: &WebGLPowerPreference) -> Ordering
fn cmp(&self, other: &WebGLPowerPreference) -> 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 WebGLPowerPreference
impl PartialEq for WebGLPowerPreference
Source§impl PartialOrd for WebGLPowerPreference
impl PartialOrd for WebGLPowerPreference
Source§impl Serialize for WebGLPowerPreference
impl Serialize for WebGLPowerPreference
Source§impl<'_a> TryFrom<&'_a WebGLPowerPreference> for Value
impl<'_a> TryFrom<&'_a WebGLPowerPreference> for Value
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl<'_a> TryFrom<&'_a mut WebGLPowerPreference> for Value
impl<'_a> TryFrom<&'_a mut WebGLPowerPreference> for Value
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<Value> for WebGLPowerPreference
impl TryFrom<Value> for WebGLPowerPreference
Source§impl TryFrom<WebGLPowerPreference> for Value
impl TryFrom<WebGLPowerPreference> for Value
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Eq for WebGLPowerPreference
impl JsSerialize for WebGLPowerPreference
impl StructuralPartialEq for WebGLPowerPreference
Auto Trait Implementations§
impl Freeze for WebGLPowerPreference
impl RefUnwindSafe for WebGLPowerPreference
impl Send for WebGLPowerPreference
impl Sync for WebGLPowerPreference
impl Unpin for WebGLPowerPreference
impl UnwindSafe for WebGLPowerPreference
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