diff options
| author | bors <bors@rust-lang.org> | 2013-07-07 09:35:04 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-07-07 09:35:04 -0700 |
| commit | 3c44265d8791d54fa64550c60dc820eef87f9cf5 (patch) | |
| tree | 1f2b07f84c59d076c625860f1922b99ce2c5b403 /src/libsyntax/parse/parser.rs | |
| parent | 005c9bde45ba53b9039765a9ed549707973c15c4 (diff) | |
| parent | fc17d4371f1d3e0c40ebcb6de0b9e7cbb89fa0c9 (diff) | |
| download | rust-3c44265d8791d54fa64550c60dc820eef87f9cf5.tar.gz rust-3c44265d8791d54fa64550c60dc820eef87f9cf5.zip | |
auto merge of #7602 : blake2-ppc/rust/vec-pop-opt, r=cmr
Implement methods `.pop_opt() -> Option<T>` and `.shift_opt() -> Option<T>` to allow retrieval of front/back of a vec in one operation without fail. .pop() and .shift() are changed to reuse the former two methods. Follows the naming of the previous method .head_opt()
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
0 files changed, 0 insertions, 0 deletions
