rust-lang/rust — pull request #19528 by aliblong (2014-12-04 17:24:13+00:00)
Title: Add capacity() to VecMap

Part of #18424

Adds `capacity()` function to VecMap, as per the collections reform.

(Salvaged from #19516, #19523, while we await an RFC regarding `reserve`/`reserve_index` for `VecMap`)