pub trait WebGPURootedPromiseTrait<D: DomTypes> {
// Required method
fn new_rooted(
cx: &mut JSContext,
global: &D::GlobalScope,
) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
}Expand description
Trait for Rooted Promise
Required Methods§
fn new_rooted( cx: &mut JSContext, global: &D::GlobalScope, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.