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
JsArrayprovides a wrapper for Boa’s implementation of the JavaScriptArrayobject.- JsArray
Buffer JsArrayBufferprovides a wrapper for Boa’s implementation of the ECMAScriptArrayBufferobject- JsBig
Int64 Array JsBigInt64Arrayprovides a wrapper for Boa’s implementation of the ECMAScriptBigInt64Arraybuiltin object.- JsBig
Uint64 Array JsBigUint64Arrayprovides a wrapper for Boa’s implementation of the ECMAScriptBigUint64Arraybuiltin object.- JsData
View JsDataViewprovides a wrapper for Boa’s implementation of the ECMAScriptDataViewobject- JsDate
JsDateis a wrapper for JavaScriptJsDatebuiltin object- JsFloat16
Array JsFloat16Arrayprovides a wrapper for Boa’s implementation of the ECMAScriptFloat16Arraybuiltin object.- JsFloat32
Array JsFloat32Arrayprovides a wrapper for Boa’s implementation of the ECMAScriptFloat32Arraybuiltin object.- JsFloat64
Array JsFloat64Arrayprovides a wrapper for Boa’s implementation of the ECMAScriptFloat64Arraybuiltin object.- JsFunction
- JavaScript
Functionrust object. - JsFuture
- A Rust’s
Futurethat becomes ready when aJsPromisefulfills. - JsGenerator
JsGeneratorprovides a wrapper for Boa’s implementation of the ECMAScriptGeneratorbuiltin object- JsInt8
Array JsInt8Arrayprovides a wrapper for Boa’s implementation of the ECMAScriptInt8Arraybuiltin object.- JsInt16
Array JsInt16Arrayprovides a wrapper for Boa’s implementation of the ECMAScriptInt16Arraybuiltin object.- JsInt32
Array JsInt32Arrayprovides a wrapper for Boa’s implementation of the ECMAScriptInt32Arraybuiltin object.- JsMap
JsMapprovides a wrapper for Boa’s implementation of the ECMAScriptMapobject.- JsMap
Iterator JsMapIteratorprovides a wrapper for Boa’s implementation of the ECMAScriptMapIteratorobject.- JsPromise
- An ECMAScriptpromise object.
- JsProxy
JsProxyprovides a wrapper for Boa’s implementation of the ECMAScriptProxyobject- JsProxy
Builder - Utility builder to create
JsProxyobjects from native functions. - JsReg
Exp JsRegExpprovides a wrapper for Boa’s implementation of the ECMAScriptRegExpbuiltin object- JsRevocable
Proxy JsRevocableProxyprovides a wrapper forJsProxythat can be disabled.- JsSet
JsSetprovides a wrapper for Boa’s implementation of the ECMAScriptSetobject.- JsSet
Iterator JsSetIteratorprovides a wrapper for Boa’s implementation of the ECMAScriptSetIteratorobject- JsShared
Array Buffer JsSharedArrayBufferprovides a wrapper for Boa’s implementation of the ECMAScriptArrayBufferobject- JsTyped
Array JsTypedArrayprovides a wrapper for Boa’s implementation of the ECMAScriptTypedArraybuiltin object.- JsUint8
Array JsUint8Arrayprovides a wrapper for Boa’s implementation of the ECMAScriptUint8Arraybuiltin object.- JsUint8
Clamped Array JsUint8ClampedArrayprovides a wrapper for Boa’s implementation of the ECMAScriptUint8ClampedArraybuiltin object.- JsUint16
Array JsUint16Arrayprovides a wrapper for Boa’s implementation of the ECMAScriptUint16Arraybuiltin object.- JsUint32
Array JsUint32Arrayprovides a wrapper for Boa’s implementation of the ECMAScriptUint32Arraybuiltin object.- Typed
JsFunction - A JavaScript
Functionrust object, typed. This adds types toa JavaScript exported function, allowing for type checking andtype conversion in Rust. Those types must convert to aJsValuebut will not be verified at runtime (since JavaScript doesn’tactually have strong typing).
Traits§
- TryInto
JsArguments - 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
JsTypedArrayfrom aTypedArrayKindand a backingJsArrayBuffer.
Type Aliases§
- Aligned
Vec Vec, but aligned to a 64-bit memory address.