Hi folks,

Can you express a statically-sized array type in Rust? I'm thinking
mainly about FFI applications... for example, a sockaddr struct is
typically something like { sa_family: u16, sa_data: u8[14] }.

If not, how would you model something like a sockaddr? Could it be a
first-class record in Rust? Be stack allocated? etc.

Best,
Graham
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to