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 | fc17d4371f1d3e0c40ebcb6de0b9e7cbb89fa0c9 (patch) | |
| tree | 7ad0eee71e331dbb02973ccda9d665eddd893410 /src/libsyntax | |
| parent | d805b832f5a49acc66e0d2acda9f9f4cf074a374 (diff) | |
| download | rust-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')
0 files changed, 0 insertions, 0 deletions
