Hello fellow Rustaceans,
This week I have been working on my first crate, edisp
, an enum dispatcher. This crate provides traits required to perform dispatching depending on enum variants yielded by an iterator. This allows, for instance, to get every errors and every successes from an iterator instead of stopping at the first error. Macros are also provided to automatically implement required traits to dispatch for user-defined enums.
The crate is available on github. I want to expand it a bit more before its first release and publishing it on crates.io. So far, I have the following questions:
- are information given on the readme concise and clear enough?
- are the docs and examples correctly written and easily understandable?
- are there some alternative crates that may be cited?
- are tests correctly written?
This crate uses a custom trait entitled Container
, which allows to unify behavior of various collections, such as Vec
, HashMap
, and so on. I think other type of collections defined in other crates can implement this trait by adding features to edisp
. For instance, Container
may be implemented on SmallVec if the smallvec
feature is enabled in the cargo file. Do you think that would be a nice improvement?
Do not hesitate to share your critics as replies of this topic, or feel free to open issues on github.
Have a nice day,
Léo