|
1 | 1 | /// Zero-sized type (ZST) to enforce 8-byte memory alignment |
2 | 2 | #[repr(align(8))] |
3 | | -#[derive(PartialEq, Eq, Copy, Clone, Debug)] |
| 3 | +#[derive(PartialEq, Eq, PartialOrd, Ord, Copy, Clone, Debug)] |
4 | 4 | pub struct Align8; |
5 | 5 |
|
6 | 6 | /// Zero-sized type (ZST) to enforce 16-byte memory alignment |
7 | 7 | #[repr(align(16))] |
8 | | -#[derive(PartialEq, Eq, Copy, Clone, Debug)] |
| 8 | +#[derive(PartialEq, Eq, PartialOrd, Ord, Copy, Clone, Debug)] |
9 | 9 | pub struct Align16; |
10 | 10 |
|
11 | 11 | /// Zero-sized type (ZST) to enforce 32-byte memory alignment |
12 | 12 | #[repr(align(32))] |
13 | | -#[derive(PartialEq, Eq, Copy, Clone, Debug)] |
| 13 | +#[derive(PartialEq, Eq, PartialOrd, Ord, Copy, Clone, Debug)] |
14 | 14 | pub struct Align32; |
15 | 15 |
|
16 | 16 | /// Zero-sized type (ZST) to enforce 64-byte memory alignment |
17 | 17 | #[repr(align(64))] |
18 | | -#[derive(PartialEq, Eq, Copy, Clone, Debug)] |
| 18 | +#[derive(PartialEq, Eq, PartialOrd, Ord, Copy, Clone, Debug)] |
19 | 19 | pub struct Align64; |
20 | 20 |
|
21 | 21 | /// Zero-sized type (ZST) to enforce 128-byte memory alignment |
22 | 22 | #[repr(align(128))] |
23 | | -#[derive(PartialEq, Eq, Copy, Clone, Debug)] |
| 23 | +#[derive(PartialEq, Eq, PartialOrd, Ord, Copy, Clone, Debug)] |
24 | 24 | pub struct Align128; |
0 commit comments