Re: [PATCH 3/6] rust: add `bitfield!` macro
From: Miguel Ojeda
Date: Thu Jan 29 2026 - 10:14:17 EST
On Thu, Jan 29, 2026 at 2:41 PM Alexandre Courbot <acourbot@xxxxxxxxxx> wrote:
>
> But not doable unfortunately, since macros cannot be declared as
> methods.
Indeed -- it may be doable in the future with postfix macros if they land:
https://github.com/rust-lang/rfcs/pull/2442
(The proposed ones do not do type-based dispatch).
Cheers,
Miguel