Re: [PATCH 4/4] rust: xarray: Add Guard::find() helper
From: Andreas Hindborg
Date: Fri Apr 24 2026 - 07:42:51 EST
"Alvin Sun" <alvin.sun@xxxxxxxxx> writes:
> Add a helper to find the first present entry in the XArray.
>
> Returns the index of the first present entry, or None if the array
> is empty.
>
> Signed-off-by: Alvin Sun <alvin.sun@xxxxxxxxx>
I submitted a similar patch a while back as part of the dependencies for
rust null block [1]. Could you check if you could use this patch for
your use case?
Best regards,
Andreas Hindborg
[1] https://lore.kernel.org/all/20260209-xarray-entry-send-v3-7-f777c65b8ae2@xxxxxxxxxx/