Re: [PATCH 1/2] rust: mm: add VmaRef range query helpers

liujinlong <[email protected]>
Newsgroups org.kernel.vger.rust-for-linux
Message-ID <[email protected]>
From: liujinlong <[email protected]>

On Tue, 11 Aug 2026 at 21:12:35 +0900, Alexandre Courbot wrote:
> I guess a more useful implementation would be to just return a Range
> of start..end and benefit from all its methods, which cover most of
> those defined in this patch.

Good point. I have replaced len(), is_empty(), and contains() with
a single range() method returning core::ops::Range<usize>. Callers
can now use the standard Range API directly.

contains_range(), is_page_aligned(), and is_page_aligned_range()
are kept since they have no Range equivalent. The updated v2
series is posted separately.

Signed-off-by: liujinlong <[email protected]>
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.