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
commitd805b832f5a49acc66e0d2acda9f9f4cf074a374 (patch)
treef4c3826d7daabed5c8ad8ed9fc4b4e9a0278fc7d /src/libsyntax/parse/parser.rs
parent58eb70a5e2ce6602e5685f5cc18ab2fe0c327020 (diff)
downloadrust-d805b832f5a49acc66e0d2acda9f9f4cf074a374.tar.gz
rust-d805b832f5a49acc66e0d2acda9f9f4cf074a374.zip
vec: Add .pop_opt() -> Option<T>
Add a function to safely retrieve the last element of a ~[T], as
Option<T>. Implement pop() using pop_opt(); it benches the same as the
old implementation when tested with optimization level 2.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
0 files changed, 0 insertions, 0 deletions