mozilla/rust — pull request #9520 by blake2-ppc (2013-09-26 10:14:54+00:00)
Title: extra::ringbuf: Implement method `.swap(uint, uint)` just like vector

extra::ringbuf: Implement method `.swap(uint, uint)` just like vector

RingBuf::swap(&mut self, i, j) swaps the element at indices `i` and `j`
if both elements are in bounds, otherwise it fails.