Re: [PATCH] rust: alloc: add `NumaNode::id()` accessor

From: Alice Ryhl

Date: Wed Jun 10 2026 - 03:17:03 EST


On Mon, Jun 08, 2026 at 01:47:35PM +0200, Andreas Hindborg wrote:
> `NumaNode` wraps an `i32` but offers no way to read it back. Add a
> trivial `id()` getter so callers that need to pass the node id to a
> C binding can recover the underlying `c_int` without reaching into
> the private field.
>
> Signed-off-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>

With #[inline] added:

Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>