#[repr(C)]pub struct EmscriptenWebGLContextAttributes {Show 14 fields
    pub alpha: bool,
    pub depth: bool,
    pub stencil: bool,
    pub antialias: bool,
    pub premultipliedAlpha: bool,
    pub preserveDrawingBuffer: bool,
    pub powerPreference: EM_WEBGL_POWER_PREFERENCE,
    pub failIfMajorPerformanceCaveat: bool,
    pub majorVersion: c_int,
    pub minorVersion: c_int,
    pub enableExtensionsByDefault: bool,
    pub explicitSwapControl: bool,
    pub proxyContextToMainThread: EMSCRIPTEN_WEBGL_CONTEXT_PROXY_MODE,
    pub renderViaOffscreenBackBuffer: bool,
}Fields§
§alpha: bool§depth: bool§stencil: bool§antialias: bool§premultipliedAlpha: bool§preserveDrawingBuffer: bool§powerPreference: EM_WEBGL_POWER_PREFERENCE§failIfMajorPerformanceCaveat: bool§majorVersion: c_int§minorVersion: c_int§enableExtensionsByDefault: bool§explicitSwapControl: bool§proxyContextToMainThread: EMSCRIPTEN_WEBGL_CONTEXT_PROXY_MODE§renderViaOffscreenBackBuffer: boolTrait Implementations§
source§impl Clone for EmscriptenWebGLContextAttributes
 
impl Clone for EmscriptenWebGLContextAttributes
source§fn clone(&self) -> EmscriptenWebGLContextAttributes
 
fn clone(&self) -> EmscriptenWebGLContextAttributes
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 moreimpl Copy for EmscriptenWebGLContextAttributes
Auto Trait Implementations§
impl Freeze for EmscriptenWebGLContextAttributes
impl RefUnwindSafe for EmscriptenWebGLContextAttributes
impl Send for EmscriptenWebGLContextAttributes
impl Sync for EmscriptenWebGLContextAttributes
impl Unpin for EmscriptenWebGLContextAttributes
impl UnwindSafe for EmscriptenWebGLContextAttributes
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)