Lyricdev
GitHub

struct ListIter

pub struct ListIter<T> :: [Iterator]

Conforms to Iterator.

Iterates over a list's elements, front to back; made by List.iter.

It walks the list itself, not a copy.

Panics

A pull panics (LYR-RT0016) when the list's length changed since the iterator was made.

Methods

pub mut fn next(): ?T