On Mon, Sep 8, 2025 at 3:26 PM Alexandre Courbot <[email protected]> wrote:
>
> The first patch makes two additions:
>
> - Bring an equivalent of the nightly upstream `Alignment` type [1] with
> an near-identical public interface,
> - Add a new `Alignable` extension trait that provides a way to align
> values up or down according to an `Alignment`, and implement it on
> unsigned integer types.
>
> The second patch makes use of these in the Nova driver.
>
> [1] https://doc.rust-lang.org/std/ptr/struct.Alignment.html
>
> Signed-off-by: Alexandre Courbot <[email protected]>
Applied to `rust-next` -- thanks everyone!
[ Used `build_assert!`, added intra-doc link, `allow`ed
`clippy::incompatible_msrv`, added `feature(const_option)`, capitalized
safety comment. - Miguel ]
Cheers,
Miguel