[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <5A8E1769-C405-4B6E-8DC2-1E96CF186494@konsulko.se>
Date: Sat, 25 Oct 2025 11:01:53 +0200
From: Vitaly Wool <vitaly.wool@...sulko.se>
To: Alice Ryhl <aliceryhl@...gle.com>
Cc: rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org,
Danilo Krummrich <dakr@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>,
Boqun Feng <boqun.feng@...il.com>,
Gary Guo <gary@...yguo.net>,
Bjorn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <lossin@...nel.org>,
Andreas Hindborg <a.hindborg@...nel.org>,
Trevor Gross <tmgross@...ch.edu>,
Onur Özkan <work@...rozkan.dev>,
Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
Subject: Re: [PATCH v5] rust: rbtree: add immutable cursor
> On Oct 15, 2025, at 9:59 AM, Alice Ryhl <aliceryhl@...gle.com> wrote:
>
> On Tue, Oct 14, 2025 at 02:33:39PM +0200, Vitaly Wool wrote:
>> Sometimes we may need to iterate over, or find an element in a read
>> only (or read mostly) red-black tree, and in that case we don't need a
>> mutable reference to the tree, which we'll however have to take to be
>> able to use the current (mutable) cursor implementation.
>>
>> This patch adds a simple immutable cursor implementation to RBTree,
>> which enables us to use an immutable tree reference. The existing
>> (fully featured) cursor implementation is renamed to CursorMut,
>> while retaining its functionality.
>>
>> The only existing user of the [mutable] cursor for RBTrees (binder) is
>> updated to match the changes.
>>
>> Signed-off-by: Vitaly Wool <vitaly.wool@...sulko.se>
>
> Reviewed-by: Alice Ryhl <aliceryhl@...gle.com>
@Miguel: is there anything else missing in this one or is it good to go?
~Vitaly
Powered by blists - more mailing lists