Skip to main content

Module value

Module value 

Source

Structs§

Sentinel
Identity-only marker for SKIP / DELETE.

Enums§

Value

Statics§

DELETE
SKIP

Functions§

is_integer_f64
Number.isInteger(v) — note Number.isInteger(2.0) === true.
js_string
String(v) / "" + v for the value kinds that get stringified as keys.
js_string_to_number
Number("...") for a string: trims, accepts decimal/hex/empty.
js_to_int32
JS n | 0 (ToInt32): truncate toward zero, wrap mod 2^32, signed.
js_to_number
JS unary +x / Number(x) (ToNumber). Returns NaN on failure.
num_to_string
JS number -> string. Differs from JS only for very large / very small magnitudes where JS switches to exponent notation (documented gap).

Type Aliases§

ModifyFn
Modify hook: mutates parent[key] (or inj), returns nothing.
NativeFn
Injector-shaped native function: (inj, val, ref, store) -> any. Thunks (e.g. $WHEN) just ignore the arguments. Takes the injection by &Inj (the Rc<RefCell<…>>) so injectors can re-borrow it as needed.
VList
VMap