forked from rustwasm/wasm-bindgen
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit implements a generic function on `JsValue` which can convert *any* Rust value that implements `IntoWasmAbi` into the corresponding `JsValue`. This can be handy when binding APIs and the intermediate JS value is needed is needed over a few function calls or is otherwise needed when calling APIs that take `JsValue` but otherwise work with Rust primitives. One of the primary intended use cases for this will be interoperation with the various `JsValue`-taking functions (or `Object`) in `web-sys`. cc rustwasm#811
- Loading branch information
1 parent
727e0a7
commit 120a244
Showing
10 changed files
with
566 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.