Comments (2)
Interesting! I haven't actually thought about something like
#[wasm_bindgen]
impl Default for Foo {
// ...
}
but it'd be neat if this worked by default!
from wasm-bindgen.
Question on possible implementations of this: How should this handle traits with type params/etc? I can see generating dynamic dispatch on types in the JS bindings, but that would only work for different input types. Should 'trait implementations with the same signature but different output types' be considered out of scope, or use some form of mangling / js_name customization?
from wasm-bindgen.
Related Issues (20)
- Implement window.location.href only using wasm_bindgen without using web_sys::Window.
- web_sys::AudioBuffer::copy_to_channel cannot be called when Wasm memory is backed by SharedArrayBuffer HOT 1
- [Proposal] Capture coverage information in wasm-pack test HOT 16
- How to correctly implement a Closure from once_into_js to be called multiple times?
- Clipboard on Safari/iOS help request
- wasm-bindgen-test: #[should_panic] on one test prevents using console_error_panic_hook on another HOT 7
- How can I look at old documentation?
- Exposing JsValue::ZERO and ONE constants HOT 9
- Sharing the same WebAssembly file across multiple targets HOT 1
- Returning `Vec<String>` from an async function fails to compile
- Could we generate `Borrow` implementations to super classes? HOT 1
- SubtleCrypto verify methods accepts mutable reference that should be immutable? HOT 3
- multithread and singlethread executors differ HOT 3
- showOpenFilePicker missing? HOT 3
- UB when copying strings to WASM. HOT 3
- Make TypeArray deref into slices?
- Impl `From` traits for conversion between `Array` and `std::vec::Vec` (in favor of `Array::to_vec`) HOT 1
- Release v0.2.91
- GpuBufferDescriptor
- Allow generate unmount-able / freeable wasm module in cli config HOT 19
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasm-bindgen.