pub(crate) trait WebGLExtensionWrapper: JSTraceable + MallocSizeOf {
// Required methods
fn instance_or_init(
&self,
cx: &mut JSContext,
ctx: &WebGLRenderingContext,
ext: &WebGLExtensions,
rval: MutableHandleObject<'_>,
);
fn spec(&self) -> WebGLExtensionSpec;
fn is_supported(&self, _: &WebGLExtensions) -> bool;
fn is_enabled(&self) -> bool;
fn enable(&self, ext: &WebGLExtensions);
fn name(&self) -> &'static str;
}Expand description
Trait used internally by WebGLExtensions to store and handle the different WebGL extensions in a common list.
Required Methods§
fn instance_or_init( &self, cx: &mut JSContext, ctx: &WebGLRenderingContext, ext: &WebGLExtensions, rval: MutableHandleObject<'_>, )
fn spec(&self) -> WebGLExtensionSpec
fn is_supported(&self, _: &WebGLExtensions) -> bool
fn is_enabled(&self) -> bool
fn enable(&self, ext: &WebGLExtensions)
fn name(&self) -> &'static str
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".