[PATCH v2 0/4] rust: add `Alignment` type
John Hubbard
jhubbard at nvidia.com
Tue Aug 5 19:26:27 UTC 2025
On 8/5/25 6:26 AM, Alexandre Courbot wrote:
...
> This leaves us with two viable solutions: `Alignable` extension trait
> with `align_up` and `align_down` operations that take an `Alignment` as
> parameter (with the caveat that they could not be const for now), or a
>From a readability point of view, this first option sounds nice. It's
clear, concise, and doesn't involve macros.
thanks,
--
John Hubbard
> set of per-type functions defined using a macro, similar to bit/genmask.
> I am fine with both but don't know which one would be preferred, can the
> R4L leadership provide some guidance? :)
>
More information about the Nouveau
mailing list