On 2/19/2026 10:29 AM, Joel Fernandes wrote:
>>> +impl<'a> FusedIterator for CListHeadIter<'a> {}
>> I asked this a couple of times ([1], [2]) but got no reply, so let me
>> try again. 🙂 Given that `list_head` is doubly-linked, can we also
>> implement `DoubleEndedIterator`?
>
> Apologies for the missed replies! Yes, DoubleEndedIterator makes sense
> for doubly-linked lists. I'll add it as a follow-up patch since it
> requires a prev() method and some additional iterator state tracking.
And looks like I am short of sleep, I replied yesterday night (now you know why
I don't work at night :-D) saying we did not want to do the DoubleEndedIterator
yet without a proper usecase for it. Anyway, the point is I wont do it in this
series and file it away as "future patch" in my TODO :)
--
Joel Fernandes
- [PATCH -next v9 0/3] rust: Add CList and GPU buddy alloc... Joel Fernandes
- [PATCH -next v9 2/3] rust: gpu: Add GPU buddy alloc... Joel Fernandes
- [PATCH -next v9 1/3] rust: clist: Add support to in... Joel Fernandes
- Re: [PATCH -next v9 1/3] rust: clist: Add suppo... Danilo Krummrich
- Re: [PATCH -next v9 1/3] rust: clist: Add s... Joel Fernandes
- Re: [PATCH -next v9 1/3] rust: clist: Add suppo... Alexandre Courbot
- Re: [PATCH -next v9 1/3] rust: clist: Add s... Joel Fernandes
- Re: [PATCH -next v9 1/3] rust: clist: A... Alexandre Courbot
- Re: [PATCH -next v9 1/3] rust: clist: Add s... Joel Fernandes
- Re: [PATCH -next v9 1/3] rust: clist: A... Joel Fernandes
- [PATCH -next v9 3/3] nova-core: mm: Select GPU_BUDD... Joel Fernandes
- Re: [PATCH -next v9 3/3] nova-core: mm: Select ... Danilo Krummrich
- Re: [PATCH -next v9 0/3] rust: Add CList and GPU bu... Danilo Krummrich
- Re: [PATCH -next v9 0/3] rust: Add CList and GP... Joel Fernandes
