Utilities for the array primitive type.
See also the array primitive type.
f with that element’s index while walking forward through the array.T into a mutable reference to an array of length 1 (without copying).T into a reference to an array of length 1 (without copying).[T; N] by repeatedly cloning a value.[T; N] where each fallible array element T is returned by the cb call. Unlike from_fn, where the element creation can’t fail, this version will return an error if any element creation was unsuccessful.
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/array/index.html