diff options
| author | blake2-ppc <blake2-ppc> | 2013-07-05 20:32:25 +0200 |
|---|---|---|
| committer | blake2-ppc <blake2-ppc> | 2013-07-05 20:32:25 +0200 |
| commit | d805b832f5a49acc66e0d2acda9f9f4cf074a374 (patch) | |
| tree | f4c3826d7daabed5c8ad8ed9fc4b4e9a0278fc7d /src/libsyntax/parse/parser.rs | |
| parent | 58eb70a5e2ce6602e5685f5cc18ab2fe0c327020 (diff) | |
| download | rust-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
