Crate jsbind

Source

Modules§

error

Structs§

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.
Console
A console wrapper
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.
Function
Wrapper around a runtime JavaScript Function object.
JSON
Static‐only namespace: JSON.parse, JSON.stringify, …
Map
MapIter
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.
Record
Web‑IDL record<K, V> wrapper.
Reflect
static Reflect struct, never constructed.
Response
JavaScript Response object returned by fetch.
Sequence
Parameterised wrapper around a JavaScript array object.
Set
Set<T> – ECMAScript “Set” wrapper (new Set()).
SetIter
TextDecoder
JavaScript TextDecoder
TextEncoder
JavaScript TextEncoder (new TextEncoder()).
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.
WeakMap
WeakMapIter
WeakSet
WeakSet<T> – ECMAScript “WeakSet” wrapper (new WeakSet()).
WeakSetIter

Functions§

clear_interval
clearInterval(id)
clear_timeout
clearTimeout(id)
fetch
JavaScript fetch(input, init?) – returns a Promise<Response>.
fetch_val
parse_float
Parse a floating-point value – identical to JS parseFloat(str).
parse_int
Parse src with an optional radix. Mirrors parseInt(str, radix).
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
ObservableArray
A typed array that notifies observers when mutated.
TypedArray
Generic WebIDL typed array (spec § 2.7).
Uint8Array
Concrete aliases for the built‑in ECMAScript numeric array types.
Uint32Array