diff options
| author | Andrew Poelstra <apoelstra@wpsoftware.net> | 2014-06-30 07:25:58 -0700 |
|---|---|---|
| committer | Andrew Poelstra <apoelstra@wpsoftware.net> | 2014-07-02 12:36:02 -0700 |
| commit | da0d4be378d289e9e90a48deec674d42205ae4c9 (patch) | |
| tree | 628be29241bcda5c23965df212063b8e8bc5da21 /src/rustllvm/RustWrapper.cpp | |
| parent | 7a7ae993ce694bf75a11632b394916e055a4d8ec (diff) | |
| download | rust-da0d4be378d289e9e90a48deec674d42205ae4c9.tar.gz rust-da0d4be378d289e9e90a48deec674d42205ae4c9.zip | |
collections::bitv: remove some ancient interfaces
Removes the following methods from `Bitv`:
- `to_vec`: translates a `Bitv` into a bulky `Vec<uint>` of 0's and 1's
replace with: `bitv.iter().map(|b| if b {1} else {0}).collect()`
- `to_bools`: translates a `Bitv` into a `Vec<bool>`
replace with: `bitv.iter().collect()`
- `ones`: internal iterator over all 1 bits in a `Bitv`
replace with: `BitvSet::from_bitv(bitv).iter().advance(fn)`
These methods had specific functionality which can be replicated more
generally by the modern iterator system. (Also `to_vec` was not even
unit tested!)
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
