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.6.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§impl Serialize for WebGlContextOption
impl Serialize for WebGlContextOption
impl Copy for WebGlContextOption
impl Eq for WebGlContextOption
impl StructuralPartialEq for WebGlContextOption
Auto Trait Implementations§
impl Freeze for WebGlContextOption
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)