1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#[repr(align(4))]
#[derive(Clone, Copy, Debug, Default, PartialOrd, PartialEq, Ord, Eq, Hash)]
pub struct Align4;

#[repr(align(8))]
#[derive(Clone, Copy, Debug, Default, PartialOrd, PartialEq, Ord, Eq, Hash)]
pub struct Align8;

#[repr(align(16))]
#[derive(Clone, Copy, Debug, Default, PartialOrd, PartialEq, Ord, Eq, Hash)]
pub struct Align16;

#[repr(align(32))]
#[derive(Clone, Copy, Debug, Default, PartialOrd, PartialEq, Ord, Eq, Hash)]
pub struct Align32;