pub fn indices(&self) -> Indices<EntryData> {
        Indices {
            entries: &self.entries,
            head: self.head(),
            remaining: self.length,
            tail: self.tail(),
        }
    }
/// Creates an indices iterator which will yield all indices of the list in order.
///
/// # Examples
///
/// ```
/// use dlv_list::VecList;
///
/// let mut list = VecList::new();
/// list.push_front(0);
/// list.push_front(5);
///
/// let mut indices = list.indices();
/// let index = indices.next().unwrap();
/// assert_eq!(list.get(index), Some(&5));
///
/// let index = indices.next().unwrap();
/// assert_eq!(list.get(index), Some(&0));
///
/// assert_eq!(indices.next(), None);
/// ```
Creates an indices iterator which will yield all indices of the list in order.
Creates an indices iterator which will yield all indices of the list in order .
pub fn indices(&self) -> Indices<EntryData> {
        Indices {
            entries: &self.entries,
            head: self.head(),
            remaining: self.length,
            tail: self.tail(),
        }
    }
pub fn indices ( & self ) -> Indices < EntryData > { Indices { entries : & self . entries , head : self . head ( ) , remaining : self . length , tail : self . tail ( ) , } }
Creates an indices iterator which will yield all indices of the list in order.
Creates an indices iterator which will yield all indices of the list in order .
&self
&self
examples
```
use dlv_list::VecList.



let mut indices = list.indices();
let index = indices.next().unwrap();
assert_eq!(list.get(index), Some(&5)).

let index = indices.next().unwrap();
assert_eq!(list.get(index), Some(&0)).

assert_eq!(indices.next(), None);
```
` ` ` use dlv_list :: VecList . let mut indices = list . indices () ; let index = indices . next () . unwrap () ; assert_eq! ( list . get ( index ) Some ( &5 )) . let index = indices . next () . unwrap () ; assert_eq! ( list . get ( index ) Some ( &0 )) . assert_eq! ( indices . next () None ) ; ` ` `