/**
    Reverses order of elements in the buffer.

    # Example

    ```
    use advanced_collections::circular_buffer::CircularBuffer;

    fn main(){
      let mut cb = CircularBuffer::from(vec![1,2,3]);
      cb.reverse();
      assert_eq!(cb, [3,2,1].as_ref());
    }
    ```
    */
Reverses order of elements in the buffer.
Reverses order of elements in the buffer .
pub fn reverse(&mut self) {
        for a in 0..self.len()/2 {
            let b = self.len() - a - 1;
            self.buffer.swap(self.internal_index(a), self.internal_index(b));
        }
    }
pub fn reverse ( & mut self ) { for a in 0 .. self . len ( ) / 2 { let b = self . len ( ) - a - 1 ; self . buffer . swap ( self . internal_index ( a ) , self . internal_index ( b ) ) ; } }
Reverses order of elements in the buffer.
Reverses order of elements in the buffer .
&mut self
example
```
use advanced_collections::circular_buffer::CircularBuffer.


` ` ` use advanced_collections :: circular_buffer :: CircularBuffer .