[rust-dev] sizeof type

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


Hi,

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?

Regards,
Alexander.


More information about the Rust-dev mailing list