convert slices into arrays using indexes ([T] -> [T;N])
by Cody Schafer
Uses old Rust 2015
#2048 in Rust patterns
3,855 downloads per month Used in 18 crates (4 directly)
5KB 66 lines
Index to fixed-length arrays