Re: [PATCH v2] rust: mem: add `Align` type
From: Andreas Hindborg
Date: Wed Sep 30 2026 - 19:08:08 EST
"Gary Guo" <gary@xxxxxxxxxxx> writes:
> Rust's `repr(align())` only works with integers. Add an `Align` type so it
> can also be specified via const generics.
>
> Signed-off-by: Gary Guo <gary@xxxxxxxxxxx>
Reviewed-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>
> ---
> Andreas, could you see if this patch meets your need for cache-line
> aligning?
Yes, with new type wrapper as discussed.
Best regards,
Andreas Hindborg