Re: [PATCH -next v9 1/3] rust: clist: Add support to interface with C linked lists
From: Joel Fernandes
Date: Thu Feb 19 2026 - 11:20:50 EST
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