Skip to main content

Module builtins

Module builtins 

Source
Expand description

All Rust API wrappers for Boa’s ECMAScript objects.

The structs available in this module provide functionality to interact with native ECMAScript objects from Rust.

Structs§

JsArray
JsArray provides a wrapper for Boa’s implementation of the JavaScript Array object.
JsArrayBuffer
JsArrayBuffer provides a wrapper for Boa’s implementation of the ECMAScript ArrayBuffer object
JsAsyncGenerator
JsAsyncGenerator provides a wrapper for Boa’s implementation of the ECMAScript AsyncGenerator builtin object.
JsBigInt64Array
JsBigInt64Array provides a wrapper for Boa’s implementation of the ECMAScript BigInt64Array builtin object.
JsBigUint64Array
JsBigUint64Array provides a wrapper for Boa’s implementation of the ECMAScript BigUint64Array builtin object.
JsDataView
JsDataView provides a wrapper for Boa’s implementation of the ECMAScript DataView object
JsDate
JsDate is a wrapper for JavaScript JsDate builtin object
JsFloat16Array
JsFloat16Array provides a wrapper for Boa’s implementation of the ECMAScript Float16Array builtin object.
JsFloat32Array
JsFloat32Array provides a wrapper for Boa’s implementation of the ECMAScript Float32Array builtin object.
JsFloat64Array
JsFloat64Array provides a wrapper for Boa’s implementation of the ECMAScript Float64Array builtin object.
JsFunction
JavaScript Function rust object.
JsFuture
A Rust’s Future that becomes ready when a JsPromise fulfills.
JsGenerator
JsGenerator provides a wrapper for Boa’s implementation of the ECMAScript Generator builtin object
JsGeneratorFunction
JsGeneratorFunction provides a wrapper for Boa’s implementation of the ECMAScript GeneratorFunction builtin object.
JsInt8Array
JsInt8Array provides a wrapper for Boa’s implementation of the ECMAScript Int8Array builtin object.
JsInt16Array
JsInt16Array provides a wrapper for Boa’s implementation of the ECMAScript Int16Array builtin object.
JsInt32Array
JsInt32Array provides a wrapper for Boa’s implementation of the ECMAScript Int32Array builtin object.
JsMap
JsMap provides a wrapper for Boa’s implementation of the ECMAScript Map object.
JsMapIterator
JsMapIterator provides a wrapper for Boa’s implementation of the ECMAScript MapIterator object.
JsPromise
An ECMAScript promise object.
JsProxy
JsProxy provides a wrapper for Boa’s implementation of the ECMAScript Proxy object
JsProxyBuilder
Utility builder to create JsProxy objects from native functions.
JsRegExp
JsRegExp provides a wrapper for Boa’s implementation of the ECMAScript RegExp builtin object
JsRevocableProxy
JsRevocableProxy provides a wrapper for JsProxy that can be disabled.
JsSet
JsSet provides a wrapper for Boa’s implementation of the ECMAScript Set object.
JsSetIterator
JsSetIterator provides a wrapper for Boa’s implementation of the ECMAScript SetIterator object
JsSharedArrayBuffer
JsSharedArrayBuffer provides a wrapper for Boa’s implementation of the ECMAScript ArrayBuffer object
JsTypedArray
JsTypedArray provides a wrapper for Boa’s implementation of the ECMAScript TypedArray builtin object.
JsUint8Array
JsUint8Array provides a wrapper for Boa’s implementation of the ECMAScript Uint8Array builtin object.
JsUint8ClampedArray
JsUint8ClampedArray provides a wrapper for Boa’s implementation of the ECMAScript Uint8ClampedArray builtin object.
JsUint16Array
JsUint16Array provides a wrapper for Boa’s implementation of the ECMAScript Uint16Array builtin object.
JsUint32Array
JsUint32Array provides a wrapper for Boa’s implementation of the ECMAScript Uint32Array builtin object.
JsWeakMap
JsWeakMap provides a wrapper for Boa’s implementation of the ECMAScript WeakMap object.
JsWeakSet
JsWeakSet provides a wrapper for Boa’s implementation of the ECMAScript WeakSet object.
TypedJsFunction
A JavaScript Function rust object, typed. This adds types to a JavaScript exported function, allowing for type checking and type conversion in Rust. Those types must convert to a JsValue but will not be verified at runtime (since JavaScript doesn’t actually have strong typing).

Traits§

TryIntoJsArguments
A trait for converting a tuple of Rust values into a vector of JsValue, to be used as arguments for a JavaScript function.

Functions§

js_typed_array_from_kind
Create a JsTypedArray from a TypedArrayKind and a backing JsArrayBuffer.

Type Aliases§

AlignedVec
Vec, but aligned to a 64-bit memory address.