jazzfool / reclutch

Rust UI Core
Other
157 stars 4 forks source link

use 'as-any' crate #24

Closed fogti closed 4 years ago

fogti commented 4 years ago

previous discussion: https://github.com/jazzfool/sinq/pull/2.

I extracted the AsAny code from two crates and put it into the as-any crate. This PR switches from the "custom" implementation to use the crate instead. Maybe, we should upstream the AnyQueueHandler into the reclutch main crate.

Perhaps downcasting could be constrained to types that implement DynQueueHandler, but that's up to you.