Module base

Source

ModulesΒ§

ptr πŸ”’
Manually manage memory through raw pointers.

StructsΒ§

HandleValueArray πŸ”’
A generic handle to an array of rooted values.
JSContext πŸ”’
JSObject πŸ”’
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Β§

ArrayBuffer πŸ”’
ArrayBufferView πŸ”’
Float32Array πŸ”’
Float64Array πŸ”’
HandleObject πŸ”’
HandleValue πŸ”’
Heap πŸ”’
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.
Uint8Array πŸ”’
Uint8ClampedArray πŸ”’