Module partial_array::iter[][src]

Expand description

Types for external iteration.

This module provides the iter::IntoIter type, which is an by-value iterator over a PartialArray. You most likely do not need to interact with this module directly. One exception is, when you explicitly need to store the iterator. In the following example a local variable is explicitly annotated, but normally one would use just type-inference.

let array = partial_array![2, 4, 8, 16, 32, 64];
let iter: partial_array::iter::IntoIter<_, 6> = array.into_iter();
for (i, value) in iter.enumerate() {
    println!("Item #{}: {}", i, value);
}

Structs

An iterator that moves out of a PartialArray, therefore an owning by-value iterator.