Lyricdev
GitHub

struct SliceIter

pub struct SliceIter<T>

Conforms to Iterator, DoubleEnded, Clone.

Iterates over an array's or a view's elements, from the front and from the back.

It walks a view of them: nothing is copied, and a write to a later element is seen.

Methods

mut fn next(): ?T
mut fn nextBack(): ?T
fn sizeHint(): (int, ?int)

Returns exactly the number of elements left.

fn clone(): SliceIter<T>