3 ms·
A Collections grouping of common data structures and macros would be useful. There are so many different idiomatic ways to instantiate a type in rust that a cr
by lumost 5y ago
A Collections grouping of common data structures and macros would be useful.
There are so many different idiomatic ways to instantiate a type in rust that a crate with a common calling convention for most data structures would be very useful.
- Elinvynia 5y agoYou mean like this? https://doc.rust-lang.org/std/collections/index.html https://doc.rust-lang.org/std/collections/index.html
- nicoburns 5y agoI think they want something like a ‘map!()’ macro.
- lumost 5y agoSibling nailed it but I can’t reply on that post. There are variations such as Vec!, map! Macros collect_vec, collect_map etc. It would be great to have a unified interface that exposes a common set of instantiation mechanisms and apis. Other lib authors should be able to implement this api and get the same calling conventions.