2 ms·
Is it just me or should the following fragment use EnforcedAlignment in main? #[derive(TypeLayout, Copy, Clone)] #[repr(C)] struct EnforcedAlignmen
by wiktor-k 2y ago
Is it just me or should the following fragment use EnforcedAlignment in main?
#[derive(TypeLayout, Copy, Clone)]
#[repr(C)]
struct EnforcedAlignment {
_offset: [u8; GAP - 8],
data: AlignedU128,
}
pub fn main() {
println!("{}", StockAlignment::type_layout());
}
Excellent blogpost showing their product, by the way!
- adriencaccia 2y agoHey, co-author of the article here! You are completely right, this is a typo, I will fix it asap! Thanks for the kind words