Module mozjs::rust

source ยท
Expand description

Rust wrappers around the raw JS apis

Re-exportsยง

  • pub use crate::gc::Traceable as Trace;
  • pub use crate::gc::*;

Modulesยง

  • Wrappers for JSAPI methods that accept lifetimed Handle and MutableHandle arguments.
  • Wrappers for JSAPI methods that should NOT be used.

Structsยง

Enumsยง

Constantsยง

Staticsยง

Traitsยง

  • A trait for types which can place appropriate GC barriers.
  • Trait for things that can be converted to handles For any type T: IntoHandle we have an implementation of From<T> for MutableHandle<T::Target>. This is a way round the orphan rule.
  • ToResult ๐Ÿ”’

Functionsยง