Module base

Module base 

Source

ModulesΒ§

ptr πŸ”’
Manually manage memory through raw pointers.
typedarray πŸ”’
High-level, safe bindings for JS typed array APIs. Allows creating new typed arrays or wrapping existing JS reflectors, and prevents reinterpreting existing buffers as different types except in well-defined cases.

MacrosΒ§

typedarray πŸ”’

StructsΒ§

AutoRealm πŸ”’
Safe wrapper around JSAutoRealm.
CurrentRealm πŸ”’
Represents the current realm of JSContext (top realm on realm stack).
HandleValueArray πŸ”’
A generic handle to an array of rooted values.
JSContext πŸ”’
A wrapper for raw JSContext pointers that are strongly associated with the Runtime type.
JSObject πŸ”’
RawJSContext πŸ”’
Rc πŸ”’
A single-threaded reference-counting pointer. β€˜Rc’ stands for β€˜Reference Counted’.

EnumsΒ§

ConversionBehavior πŸ”’
Behavior for converting out-of-range integers.
ConversionResult πŸ”’
An enum to better support enums through FromJSValConvertible::from_jsval.

TraitsΒ§

FromJSValConvertible πŸ”’
A trait to convert JSVals to Rust types.
ToJSValConvertible πŸ”’
A trait to convert Rust types to JSVals.

FunctionsΒ§

Call πŸ”’ ⚠
IsCallable πŸ”’ ⚠
Return true if the given object is callable. In ES6 terms, an object is callable if it has a [Call] internal method.
JS_NewObject πŸ”’ ⚠
NullValue πŸ”’
ObjectOrNullValue πŸ”’
ObjectValue πŸ”’
UndefinedValue πŸ”’
maybe_resume_unwind πŸ”’
If there is a pending panic, resume unwinding.
throw_type_error πŸ”’ ⚠
Throw a TypeError with the given message.

Type AliasesΒ§

HandleObject πŸ”’
HandleValue πŸ”’
Heap πŸ”’
HeapArrayBuffer πŸ”’
HeapArrayBufferView πŸ”’
HeapFloat32Array πŸ”’
HeapFloat64Array πŸ”’
HeapUint8Array πŸ”’
HeapUint8ClampedArray πŸ”’
JSVal πŸ”’
MutableHandleObject πŸ”’
MutableHandleValue πŸ”’
RawHandleValue πŸ”’
Reference to a T that has been rooted elsewhere. This is most useful as a parameter type, which guarantees that the T lvalue is properly rooted. See β€œMove GC Stack Rooting” above.