Registry / utility / array-init

array-init

JSON →
library2.1.0rscratesunverified

Safe wrapper for initializing fixed-size arrays.

utility
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

use array_init::array_init;

Initialize an array with a closure.

use array_init::array_init; fn main() { let arr: [u32; 5] = array_init(|i| i as u32 * 2); println!("{:?}", arr); }
Debug
Known footguns

No known footguns recorded.

Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
15 hits · last 30 days
gptbot
3
amazonbot
3
claudebot
3
mj12bot
1
Resources