MCPcopy Create free account
hub / github.com/Manishearth/array-init / seq

Function seq

src/lib.rs:322–325  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

320
321 #[test]
322 fn seq() {
323 let seq: [usize; 5] = array_init(|i| i);
324 assert_eq!(&[0, 1, 2, 3, 4], &seq);
325 }
326
327 #[test]
328 fn array_from_iter() {

Callers

nothing calls this directly

Calls 1

array_initFunction · 0.85

Tested by

no test coverage detected