Open
Description
I noticed the Layout of Rust array types and slices chapter from the Unsafe Code Guidelines doesn't mention anything about the layout of multi-dimensional arrays.
Can it be assumed that a [[T; N]; M]
will have the same layout as a [T; N*M]
?
I believe you can infer it to be true based on the first three paragraphs, but I thought I'd double-check because it doesn't explicitly mention anything about multi-dimensional arrays.
Metadata
Metadata
Assignees
Labels
No labels