]> git.lizzy.rs Git - rust.git/commit
Add extra methods to IndexVec and implement TypeFoldable for it
authorJames Miller <james@aatch.net>
Wed, 8 Feb 2017 09:19:22 +0000 (22:19 +1300)
committerEduard-Mihai Burtescu <edy.burt@gmail.com>
Fri, 10 Mar 2017 00:55:39 +0000 (02:55 +0200)
commitd708a4072a9fa35be3cb6a1e74557925507ba606
tree70c0bb012cf2547b7156f16a5b6ca09c7f7aa5c1
parentec87925325c005922977ebf9b10dc9e98d8a6d40
Add extra methods to IndexVec and implement TypeFoldable for it

Adds `get`/`get_mut` accessors and `drain`/`drain_enumerated` iterators
to IndexVec.

Implements TypeFoldable for IndexVec.
src/librustc/ty/structural_impls.rs
src/librustc_data_structures/indexed_vec.rs
src/librustc_data_structures/lib.rs