Expand description
Rust wrappers around the raw JS apis
Re-exportsยง
Modulesยง
- Wrappers for JSAPI methods that accept lifetimed Handle and MutableHandle arguments.
- Wrappers for JSAPI methods that should NOT be used.
Structsยง
- ENGINE_STATE ๐
- A handle that must be kept alive in order to create new Runtimes. When this handle is dropped, the engine is shut down and cannot be reinitialized.
- A handle to a Runtime that will be used to create a new runtime in another thread. This handle and the new runtime must be destroyed before the original runtime can be dropped.
- A wrapper for the
JSContext
structure in SpiderMonkey. - A version of the
JSContext
that can be used from other threads and is thusSend
andSync
. This should only ever expose operations that are marked as thread-safe by the SpiderMonkey API, ie ones that only atomic fields in JSContext.
Enumsยง
- EngineState ๐
Constantsยง
- CONTEXT ๐
- ChunkShift ๐
- ChunkSize ๐
- STACK_QUOTA ๐
- SYSTEM_CODE_BUFFER ๐
Staticsยง
- This is a simple
JSClass
for global objects, primarily intended for tests.
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 ofFrom<T>
forMutableHandle<T::Target>
. This is a way round the orphan rule. - ToResult ๐
Functionsยง
- ToInt32โ
- ToInt64โ
- ToNumberโ
- ToStringโ
- ToUint16โ
- ToUint32โ
- ToUint64โ
- convert_from_int32 ๐ โ
- Defines methods on
obj
. The last entry ofmethods
must contain zeroed memory. - Defines attributes on
obj
. The last entry ofproperties
must contain zeroed memory. - get_object_group ๐ โ