Skip to main content

Crate rong_core

Crate rong_core 

Source

Re-exports§

pub use error::HostError;
pub use error::JSResult;
pub use error::RongJSError;
pub use error::illegal_constructor;
pub use function::Constructor;

Modules§

advanced
engine
error
Error-related public API (stable codes + boundary types).
function
prelude
rong

Macros§

err_data
impl_js_converter

Structs§

AnyJSTypedArray
Class
Represents a JavaScript class constructor
ClassSetup
JSArray
JSArrayBuffer
JSAsyncIterator
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
JSTypedArray
JSValue
PinnedRong
PinnedWorker
Promise
Represents a JavaScript Promise object.
PropertyAttributes
PropertyDescriptor
Source
Uint8Clamped
Marker type for Uint8ClampedArray.

Enums§

JSTypedArrayKind
Represents the different kinds of TypedArrays available in JavaScript.
JSValueType
JsInvokePriority
Invocation priority
PinnedSpawnError
PromiseHandlerRegistration
Describes how a JavaScript engine registered promise handlers.
PropertyKey
SourceKind

Traits§

FromJSValue
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.
IntoJSAsyncIteratorExt
Extension trait for converting streams to JavaScript async iterators.
IntoJSIteratorExt
Extension trait for converting iterables to JavaScript iterators.
IntoJSValue
convert to JS Value represented by trait JSValueImpl
JSClass
JSClass trait for rust type that supports TypeId TypeId is currently only available for types which ascribe to 'static,
JSEngine
JsonToJSValue
Converts a JSON string into a JSValue
PromiseResolver
Converts a Rust future result into JavaScript Promise resolution using the provided resolve/reject callbacks
TypedArrayElement
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).