Re: [PATCH v7 05/10] rust: bitmap: add contiguous area operations

From: Miguel Ojeda

Date: Fri Aug 21 2026 - 04:34:33 EST


On Fri, Aug 21, 2026 at 10:11 AM Alexandre Courbot <acourbot@xxxxxxxxxx> wrote:
>
> Mutating methods should definitely keep that check, but for querying
> this looks like a legitimate way to use the API.

If there is a need to use the API in a certain way (and there is no
other intended/"better" way to do something), then yeah.

Otherwise, having `debug_assert!`s or similar are more than welcome.

Cheers,
Miguel