DioxusLabs / DioxusLabs/dioxus

Collapse events to `Event<dyn Data>`

Open
#2,041 1 comment 0 reactions 0 assignees View on GitHub
consistency html
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.