Module jsbox

Source
Expand description

Functions for passing arbitrary Rust values across the JS boundary and back to Rust, ex. as a return value from a promise.

Functions§

js_box
Boxes an object, returning a JS wrapper that js_unbox can consume to turn back into the object.
js_unbox
Unboxes a value created by js_box, returning the original object.