Re: [PATCH v3 03/12] rust: xarray: add `contains_index` method

From: Tamir Duberstein

Date: Tue Feb 10 2026 - 11:57:07 EST


On Mon, Feb 9, 2026 at 6:38 AM Andreas Hindborg <a.hindborg@xxxxxxxxxx> wrote:
>
> Add a convenience method `contains_index` to check whether an element
> exists at a given index in the XArray. This method provides a more
> ergonomic API compared to calling `get` and checking for `Some`.
>
> Signed-off-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>

As I said in v1 I'm -1 on this change. As gregkh would say: it's hard
to review a new API without seeing its user.