[PATCH v4 04/20] rust: add new `num` module with useful integer operations

Miguel Ojeda miguel.ojeda.sandonis at gmail.com
Thu May 22 08:44:49 UTC 2025


On Thu, May 22, 2025 at 6:01 AM Alexandre Courbot <acourbot at nvidia.com> wrote:
>
> Either that, or we enable `#![feature(const_trait_impl)]`. I just tried
> and with it we could indeed define and implement `NumExt` as const,
> which looks like the cleanest way to do this to me.

Hmm... I think that one is actively being worked on, with a possible
syntax change in the works. We would need to speak to upstream Rust to
see when we could reasonably stat to use it, and consider the older
compilers (e.g. if the syntax changes).

Cheers,
Miguel


More information about the dri-devel mailing list