about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorblake2-ppc <blake2-ppc>2013-07-05 20:32:25 +0200
committerblake2-ppc <blake2-ppc>2013-07-05 20:32:25 +0200
commitfc17d4371f1d3e0c40ebcb6de0b9e7cbb89fa0c9 (patch)
tree7ad0eee71e331dbb02973ccda9d665eddd893410 /src/libsyntax/parse/parser.rs
parentd805b832f5a49acc66e0d2acda9f9f4cf074a374 (diff)
downloadrust-fc17d4371f1d3e0c40ebcb6de0b9e7cbb89fa0c9.tar.gz
rust-fc17d4371f1d3e0c40ebcb6de0b9e7cbb89fa0c9.zip
vec: Add .shift_opt() -> Option<T>
Add a function to safely retrieve the first element of a ~[T], as
Option<T>. Implement shift() using shift_opt().

Add tests for both .shift() and .shift_opt()
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
0 files changed, 0 insertions, 0 deletions