mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-29 13:06:06 +03:00
c64f178543
This commit adds support for closures with arguments like strings and such. In other words, closures passed to JS can now have the same suite of arguments as all functions that can be exported from Rust, as one might expect! At this time due to the way trait objects work closures still cannot use types with references like `&str`, but bare values like `String` or `ImportedType` should work just fine. Closes #104 |
||
---|---|---|
.. | ||
api.rs | ||
classes.rs | ||
closures.rs | ||
dependencies.rs | ||
enums.rs | ||
import_class.rs | ||
imports.rs | ||
jsobjects.rs | ||
main.rs | ||
math.rs | ||
node.rs | ||
non_debug.rs | ||
simple.rs | ||
slice.rs | ||
structural.rs |