fn iterator_resumption() {
        let list = StableList::new();
        let mut iter = list.iter();
        assert_eq!(list.len(), 0);
        assert_eq!(iter.next(), None);
        list.push(1000);
        assert_eq!(list.len(), 1);
        assert_eq!(iter.next(), Some(&1000));
    }
/// Test that iterator will return values again after returning None if new values are added to
/// base list
Test that iterator will return values again after returning None if new values are added to
base list
Test that iterator will return values again after returning None if new values are added to base list
fn iterator_resumption() {
        let list = StableList::new();
        let mut iter = list.iter();
        assert_eq!(list.len(), 0);
        assert_eq!(iter.next(), None);
        list.push(1000);
        assert_eq!(list.len(), 1);
        assert_eq!(iter.next(), Some(&1000));
    }
fn iterator_resumption ( ) { let list = StableList :: new ( ) ; let mut iter = list . iter ( ) ; assert_eq ! ( list len ( ) 0 ) ; assert_eq ! ( iter next ( ) None ) ; list . push ( 1000 ) ; assert_eq ! ( list len ( ) 1 ) ; assert_eq ! ( iter next ( ) Some ( 1000 ) ) ; }
Test that iterator will return values again after returning None if new values are added to
base list
Test that iterator will return values again after returning None if new values are added to base list