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

Miguel Ojeda <[email protected]>
Newsgroups org.kernel.vger.rust-for-linux,dev.linux.lists.nova-gpu,org.freedesktop.lists.dri-devel,org.kernel.vger.linux-kernel
Message-ID <CANiq72=ot1SVQRxzX5NmyTspzf-eMKca7DQMdUMSHtThn+kfpg@mail.gmail.com>
On Fri, Aug 21, 2026 at 10:11 AM Alexandre Courbot <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.