by wiktor-k · 2y ago · 0 comments
#[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!