Crate jsbind

Source

Modules§

prelude
utils

Macros§

impl_dyn_cast

Structs§

AggregateError
Any
Any is just a wrapper around emlite::Val A wrapper around a javascript handle
ArrayBuffer
A raw, fixed‑length buffer of bytes as defined by the ECMAScript spec.
ByteString
Wrapper for WebIDL ByteString.
CSSOMString
Wrapper for WebIDL CSSOMString.
Closure
The inner value is guaranteed at runtime to be callable (typeof v === "function"). All methods are zero‑cost delegates to emlite::Val helpers.
DOMString
Wrapper for WebIDL DOMString.
DataView
Provides a configurable view on top of an ArrayBuffer.
Date
One-to-one wrapper around a JS Date instance.
Error
EvalError
Function
Wrapper around a runtime JavaScript Function object.
JSON
Static‐only namespace: JSON.parse, JSON.stringify, …
Math
Namespace only; no value is ever instantiated.
Null
Only a single instance has semantic meaning—see Null::VALUE.
Object
ECMAScript ordinary object backed by an emlite::Val.
Performance
Promise
JavaScript Promise wrapper.
RangeError
Record
Web‑IDL record<K, V> wrapper.
ReferenceError
Reflect
static Reflect struct, never constructed.
Response
JavaScript Response object returned by fetch.
Sequence
Parameterised wrapper around a JavaScript array object.
SyntaxError
TextDecoder
JavaScript TextDecoder
TextEncoder
JavaScript TextEncoder (new TextEncoder()).
TypeError
TypedMap
TypedMapIter
TypedSet
TypedSet<T> – ECMAScript “TypedSet” wrapper (new TypedSet()).
TypedSetIter
TypedWeakMap
TypedWeakMapIter
TypedWeakSet
TypedWeakSet<T> – ECMAScript “TypedWeakSet” wrapper (new TypedWeakSet()).
TypedWeakSetIter
URIError
URL
URLSearchParams
URLSearchParams – minimal wrapper.
USVString
Wrapper for WebIDL USVString.
Undefined
The struct merely carries the underlying emlite::Val so it can be passed through JS APIs; there is only one meaningful instance, exposed as Undefined::VALUE.

Functions§

clear_interval
clearInterval(id)
clear_timeout
clearTimeout(id)
fetch
JavaScript fetch(input, init?) – returns a Promise<Response>.
fetch_val
set_interval
setInterval(cb, ms, ...args) → returns id
set_timeout
setTimeout(cb, ms, ...args) → returns timer id (i32 in browsers).

Type Aliases§

Array
Heterogeneous JavaScript Array (equivalent to Vec<JsValue>).
Float32Array
Float64Array
FrozenArray
An immutable view of a typed array (WebIDL frozen array).
Int8Array
Int32Array
Map
ObservableArray
A typed array that notifies observers when mutated.
Set
TypedArray
Generic WebIDL typed array (spec § 2.7).
Uint8Array
Concrete aliases for the built‑in ECMAScript numeric array types.
Uint32Array
WeakMap
WeakSet