value: T
}
-union Union {
- f1: i8,
- f2: u8,
-}
-
-pub union Union2 {
- pub name: [u8; 1],
-}
-
struct StringAtOffset {
pub field1: &'static str,
pub field2: i32,
value: 0,
};
- let u = Union { f2: 255 };
let simplelayout = SimpleLayout { f1: 8, f2: 9 };
let empty_enum_value: EmptyEnum;
- let u2 = Union2 { name: [1] };
-
let nonzero_offset = EnumWithNonzeroOffset { a: Some(1), b: None };
println!("{}, {}", x.0, x.1); // set breakpoint here