about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-07-07 09:35:04 -0700
committerbors <bors@rust-lang.org>2013-07-07 09:35:04 -0700
commit3c44265d8791d54fa64550c60dc820eef87f9cf5 (patch)
tree1f2b07f84c59d076c625860f1922b99ce2c5b403 /src/libsyntax/parse
parent005c9bde45ba53b9039765a9ed549707973c15c4 (diff)
parentfc17d4371f1d3e0c40ebcb6de0b9e7cbb89fa0c9 (diff)
downloadrust-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')
0 files changed, 0 insertions, 0 deletions