pub fn iter(&self) -> Iter<T> {

        let (a,b) = self.slices();
        a.iter().chain(b.iter())
    }
/**
    Returns an iterator over the buffer from the front to back.

    # Example

    ```
    use advanced_collections::circular_buffer::CircularBuffer;
    use std::iter::FromIterator;

    fn main(){
        let mut cb = CircularBuffer::from(vec![1,2,3]);
        let v = Vec::from_iter(cb.iter());
        assert_eq!(v, vec![&1,&2,&3]);
    }
    ```
    */
Returns an iterator over the buffer from the front to back.
Returns an iterator over the buffer from the front to back .
pub fn iter(&self) -> Iter<T> {
        let (a,b) = self.slices();
        a.iter().chain(b.iter())
    }
pub fn iter ( & self ) -> Iter < T > { let ( a , b ) = self . slices ( ) ; a . iter ( ) . chain ( b . iter ( ) ) }
Returns an iterator over the buffer from the front to back.
Returns an iterator over the buffer from the front to back .
&self
&self
example
```
use advanced_collections::circular_buffer::CircularBuffer;
use std::iter::FromIterator.


` ` ` use advanced_collections :: circular_buffer :: CircularBuffer ; use std :: iter :: FromIterator .