Re-exports§
pub use error::HostError;pub use error::JSResult;pub use error::RongJSError;pub use error::illegal_constructor;pub use function::Constructor;
Modules§
Macros§
Structs§
- AnyJS
Typed Array - Class
- Represents a JavaScript class constructor
- Class
Setup - JSArray
- JSArray
Buffer - JSAsync
Iterator - Core JavaScript async iterator that wraps Rust streams.
- JSBytes
- JavaScript-visible opaque byte handle.
- JSContext
- JSDate
- JSException
- Represents a JavaScript exception object wrapper
- JSFunc
- JSIterator
- Core JavaScript iterator that wraps Rust iterators.
- JSObject
- JSProxy
- JSRuntime
- JSSymbol
- JSTyped
Array - JSValue
- Pinned
Rong - Pinned
Worker - Promise
- Represents a JavaScript Promise object.
- Property
Attributes - Property
Descriptor - Source
- Uint8
Clamped - Marker type for
Uint8ClampedArray.
Enums§
- JSTyped
Array Kind - Represents the different kinds of TypedArrays available in JavaScript.
- JSValue
Type - JsInvoke
Priority - Invocation priority
- Pinned
Spawn Error - Promise
Handler Registration - Describes how a JavaScript engine registered promise handlers.
- Property
Key - Source
Kind
Traits§
- FromJS
Value - The trait that supports extract type from JSValue Why from_js_value don’t use V as input type ? Because it needs to return JSValue, JSObject.
- IntoJS
Async Iterator Ext - Extension trait for converting streams to JavaScript async iterators.
- IntoJS
Iterator Ext - Extension trait for converting iterables to JavaScript iterators.
- IntoJS
Value - convert to JS Value represented by trait JSValueImpl
- JSClass
- JSClass trait for rust type that supports TypeId
TypeIdis currently only available for types which ascribe to'static, - JSEngine
- Json
ToJS Value - Converts a JSON string into a JSValue
- Promise
Resolver - Converts a Rust future result into JavaScript Promise resolution using the provided resolve/reject callbacks
- Typed
Array Element - Trait for types that can be used as compile-time typed array view markers.
Functions§
- enqueue_
js_ invoke - Enqueue a JS function invocation with priority/coalescing.
- install_
async_ iterator_ symbol - Install
[Symbol.asyncIterator]on an existing JS object (self-referential). - install_
iterator_ symbol - Install
[Symbol.iterator]on an existing JS object (self-referential).