Enum eframe::WebGlContextOption
source · pub enum WebGlContextOption {
WebGl1,
WebGl2,
BestFirst,
CompatibilityFirst,
}
Expand description
WebGL Context options
Variants§
WebGl1
Force Use WebGL1.
WebGl2
Force use WebGL2.
BestFirst
Use WebGl2 first.
CompatibilityFirst
Use WebGl1 first
Trait Implementations§
source§impl Clone for WebGlContextOption
impl Clone for WebGlContextOption
source§fn clone(&self) -> WebGlContextOption
fn clone(&self) -> WebGlContextOption
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 WebGlContextOption
impl Debug for WebGlContextOption
source§impl<'de> Deserialize<'de> for WebGlContextOption
impl<'de> Deserialize<'de> for WebGlContextOption
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 WebGlContextOption
impl Hash for WebGlContextOption
source§impl PartialEq for WebGlContextOption
impl PartialEq for WebGlContextOption
source§fn eq(&self, other: &WebGlContextOption) -> bool
fn eq(&self, other: &WebGlContextOption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for WebGlContextOption
impl Serialize for WebGlContextOption
impl Copy for WebGlContextOption
impl Eq for WebGlContextOption
impl StructuralEq for WebGlContextOption
impl StructuralPartialEq for WebGlContextOption
Auto Trait Implementations§
impl RefUnwindSafe for WebGlContextOption
impl Send for WebGlContextOption
impl Sync for WebGlContextOption
impl Unpin for WebGlContextOption
impl UnwindSafe for WebGlContextOption
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.