Re: [PATCH v2 1/3] rust: pci: provide access to PCI Class, subclass, implementation values

From: Miguel Ojeda
Date: Thu Aug 21 2025 - 21:04:18 EST


On Wed, Aug 20, 2025 at 5:48 AM Elle Rhumsaa <elle@xxxxxxxxxxxxxxxxxxx> wrote:
>
> All of the functions could probably be `#[inline]`ed, though I'm not
> sure how much it affects the `const` functions, since they're already
> evaluated at compile-time.

I don't think that is guaranteed unless called from a const context.

Cheers,
Miguel