Module rust

Module rust 

Source
Expand description

Rust wrappers around the raw JS apis

Re-exports§

pub use crate::gc::*;

Modules§

wrappers
Wrappers for JSAPI methods that accept lifetimed Handle and MutableHandle arguments

Structs§

CapturedJSStack
CompileOptionsWrapper
EnvironmentChain
IdVector
JSAutoStructuredCloneBufferWrapper
JSEngine
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.
JSEngineHandle
ParentRuntime
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.
RealmOptions
RootedObjectVectorWrapper
Runtime
A wrapper for the JSContext structure in SpiderMonkey.
ScriptedCaller
Stencil
ThreadSafeJSContext
A version of the JSContext that can be used from other threads and is thus Send and Sync. 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§

JSEngineError

Statics§

SIMPLE_GLOBAL_CLASS
This is a simple JSClass for global objects, primarily intended for tests.

Traits§

GCMethods
A trait for types which can place appropriate GC barriers.
IntoHandle
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.
IntoMutableHandle
Trace
Types that can be traced.

Functions§

ToBoolean
ToInt32
ToInt64
ToNumber
ToString
ToUint16
ToUint32
ToUint64
ToWindowProxyIfWindow
define_methods
Defines methods on obj. The last entry of methods must contain zeroed memory.
define_properties
Defines attributes on obj. The last entry of properties must contain zeroed memory.
describe_scripted_caller
get_context_realm
get_object_class
get_object_realm
is_dom_class
is_dom_object
is_window
maybe_wrap_object
maybe_wrap_object_or_null_value
maybe_wrap_object_value
maybe_wrap_value
report_warning
transform_str_to_source_text
transform_u16_to_source_text
try_to_outerize
try_to_outerize_object