collect!
This crate provides the collect! macro, which can be used to easily construct arbitrary collections, including Vec, String, and HashMap. It also endeavours to construct the collection with a single allocation, where possible.
Vec
String
HashMap
(Documentation for the master branch.)