Hi everyone!
For some time now, I’ve been working on the problem of type-safe storage and passing of type-erased closures. In about 80% of cases, this isn’t hard: Box or Arc<dyn Fn(Args...) -> Out> is more than enough. But once async comes into play, or when lifetimes need to be handled through higher-ranked trait bounds (HRTB), things get painful – and your type signatures turn into spaghetti. My crate solves all these problems by reducing them to an interface similar to std::function in C++. The crate is currently at version 0.1.0, and breaking and optimization-related changes are planned (see GitHub Issues). I’d be very glad to get code review, bug reports, reports of inconsistencies and rough edges – and even more so, contributions directly to the project.
Links:
( I’m a bit unsure whether to post this under announcements or under review requests, since in form it looks like an announcement, but in fact I’m asking for review and feedback. I hope I’ve chosen the right place to post this thread. )
1 post - 1 participant