vec_to_array
Moves a heap allocated Vec
into a stack allocated array.
let vec: = vec!;
let array: = vec_to_array!;
assert_eq!;
let vec: = vec!;
let array: = try_vec_to_array!;
assert_eq!;
Note, 1.48.0 introduced an implementation of try_into for transmuting directly on the heap, which should usually be preferred.