mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 09:44:08 +00:00
20 lines
208 B
Rust
20 lines
208 B
Rust
#[repr(packed)]
|
|
pub struct P1S5 {
|
|
a: u8,
|
|
b: u32
|
|
}
|
|
|
|
#[repr(packed(2))]
|
|
pub struct P2S6 {
|
|
a: u8,
|
|
b: u32,
|
|
c: u8
|
|
}
|
|
|
|
#[repr(C, packed(2))]
|
|
pub struct P2CS8 {
|
|
a: u8,
|
|
b: u32,
|
|
c: u8
|
|
}
|