Module std::slice

Overview

Types related to working with contiguous slices.

Examples

let it = [10, 20].iter();

assert_eq!(it.next(), Some(10));
assert_eq!(it.next(), Some(20));
assert_eq!(it.next(), None);

Structs

Iter

An efficient reference counter iterator over a vector.