pub struct WebGlContextDescriptor<'a> {
pub kind: WebGlContextKind,
pub context: i32,
pub canvas_selector: &'a str,
}Expand description
The WebGL context or canvas that a render session uses.
See mln_web_gl_context_descriptor in the
C API reference.
Fields§
§kind: WebGlContextKind§context: i32Your EMSCRIPTEN_WEBGL_CONTEXT_HANDLE, for an existing context.
canvas_selector: &'a strThe canvas’s CSS selector, for a transferred canvas.
Trait Implementations§
Source§impl<'a> Clone for WebGlContextDescriptor<'a>
impl<'a> Clone for WebGlContextDescriptor<'a>
Source§fn clone(&self) -> WebGlContextDescriptor<'a>
fn clone(&self) -> WebGlContextDescriptor<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for WebGlContextDescriptor<'a>
impl<'a> Debug for WebGlContextDescriptor<'a>
Source§impl<'a> Default for WebGlContextDescriptor<'a>
impl<'a> Default for WebGlContextDescriptor<'a>
Source§fn default() -> WebGlContextDescriptor<'a>
fn default() -> WebGlContextDescriptor<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> PartialEq for WebGlContextDescriptor<'a>
impl<'a> PartialEq for WebGlContextDescriptor<'a>
impl<'a> StructuralPartialEq for WebGlContextDescriptor<'a>
Auto Trait Implementations§
impl<'a> Freeze for WebGlContextDescriptor<'a>
impl<'a> RefUnwindSafe for WebGlContextDescriptor<'a>
impl<'a> Send for WebGlContextDescriptor<'a>
impl<'a> Sync for WebGlContextDescriptor<'a>
impl<'a> Unpin for WebGlContextDescriptor<'a>
impl<'a> UnsafeUnpin for WebGlContextDescriptor<'a>
impl<'a> UnwindSafe for WebGlContextDescriptor<'a>
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more