DioxusLabs / DioxusLabs/dioxus
Collapse events to `Event<dyn Data>`
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
## Feature Request
We go through many layers of indirection to support concrete methods on events, but I'm starting to think that the overhead and maintenance burden is not worth it, and that we can mostly solve the discoverability problem either through docs or clever foreign impls.
For example, we stuff dyn HasMouseData inside a MouseData inside an event via Rc which is quite a lot of cruft to wade through.
In reality, I'd like to be able to simply jump to the trait and get its methods rather than dig through 3-4 levels of indirection.
```rust
pub struct MouseData {
inner: Box,
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.