Macro memoffset::offset_of_tuple [−][src]
Calculates the offset of the specified field from the start of the tuple.
Examples
#[macro_use] extern crate memoffset; fn main() { assert!(offset_of_tuple!((u8, u32), 1) >= 0, "Tuples do not have a defined layout"); }