Module prelude

Source

Re-exports§

pub use crate::response::fetch;
pub use crate::response::fetch_val;
pub use crate::url::URL;

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")
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.
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
WebIDL record<K, V> wrapper. No concrete JS type, but needed for WebIDL
ReferenceError
Reflect
static Reflect struct, never constructed.
Sequence
Parameterised wrapper around a JavaScript array object. No concrete JS type, but needed for WebIDL
SyntaxError
TextDecoder
JavaScript TextDecoder
TextEncoder
JavaScript TextEncoder (new TextEncoder()).
TypeError
TypedMap
TypedMapIter
TypedSet
TypedSet<T> – Typed wrapper around ECMAScript “Set” (new Set()).
TypedSetIter
TypedWeakMap
TypedWeakMapIter
TypedWeakSet
TypedWeakSet<T> – Typed wrapper around ECMAScript “WeakSet” (new WeakSet()).
TypedWeakSetIter
URIError
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.

Enums§

Endian
Explicit byte‑order flag for DataView getters / setters.

Traits§

DynCast
Trait analogous to wasm-bindgen::JsCast.
FromVal
UnwrapThrowExt

Functions§

clear_interval
clearInterval(id)
clear_timeout
clearTimeout(id)
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).
throw_str
Throws a JS exception.
throw_val
Throws a JS exception

Type Aliases§

AnyHandle
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