[rust-dev] sizeof type

Alexander Stavonin a.stavonin at gmail.com
Tue Apr 10 04:07:41 PDT 2012


I have a type which will be bind to appropriate C structure:

type test_type = {
    val1 : i16;
    val2 : i32;

How could I get size of the test_type? How could I provide an information about alignment of the test_type?


More information about the Rust-dev mailing list