pub fn js_box<T>(v: T) -> Value
Expand description
Boxes an object, returning a JS wrapper that js_unbox
can consume to turn back into the object.
The contents of the return value should be untouched, both by rust code and by JS code, for
safe usage with js_unbox
.