#[non_exhaustive]pub struct WebGlContextDescriptor {
pub context: i32,
}Expand description
Browser WebGL context a session renders into.
The host creates the context and keeps owning it; a session shares it rather
than holding it exclusively. context is an
EMSCRIPTEN_WEBGL_CONTEXT_HANDLE, which the native library requires to be
positive.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.context: i32Implementations§
Trait Implementations§
Source§impl Clone for WebGlContextDescriptor
impl Clone for WebGlContextDescriptor
Source§fn clone(&self) -> WebGlContextDescriptor
fn clone(&self) -> WebGlContextDescriptor
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 WebGlContextDescriptor
impl Debug for WebGlContextDescriptor
Source§impl PartialEq for WebGlContextDescriptor
impl PartialEq for WebGlContextDescriptor
impl StructuralPartialEq for WebGlContextDescriptor
Auto Trait Implementations§
impl Freeze for WebGlContextDescriptor
impl RefUnwindSafe for WebGlContextDescriptor
impl Send for WebGlContextDescriptor
impl Sync for WebGlContextDescriptor
impl Unpin for WebGlContextDescriptor
impl UnsafeUnpin for WebGlContextDescriptor
impl UnwindSafe for WebGlContextDescriptor
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