/**
    Clears content of the buffer.

    # Example

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

    fn main(){
        let mut cb = CircularBuffer::from(vec![1,2]);
        cb.clear();
        assert!(cb.is_empty());
    }
    ```
    */
Clears content of the buffer.
Clears content of the buffer .
pub fn clear(&mut self) {
        while let Some(val) = self.pop_back() {
            drop(val)
        }
    }
pub fn clear ( & mut self ) { while let Some ( val ) = self . pop_back ( ) { drop ( val ) } }
Clears content of the buffer.
Clears content of the buffer .
&mut self
example
```
use advanced_collections::circular_buffer::CircularBuffer.


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