Rust Construct Struct with Array Member at runtime
This is the question Construct structure with array member during runtime during runtime?
During FFI, I want to know the layout of structure and then this temporary structure will be discarded when function returns. However, the rustc
rejects this case because the array size n
is not a constant during the compiling time, even though the structure is defined for layout calculation.