Skip to main content

IntoJsGlobal

Trait IntoJsGlobal 

pub trait IntoJsGlobal {
    // Required method
    fn into_global_entry(self) -> JsGlobal;
}
Available on crate features js and std only.
Expand description

Everything that can be registered as a global on a JsRuntimeBuilder: values convertible Into<JsValue> as well as JsNamespace host objects.

Required Methods§

fn into_global_entry(self) -> JsGlobal

Lower into the global registration entry.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§