[RFC PATCH 0/2] rust: list: Add examples for linked list

From: I Hsin Cheng
Date: Mon Mar 10 2025 - 03:31:04 EST


This patch series introduce runnable examples for linked list. They also
serve as the unit tests for the methods for "List".
A new initialized method is also introduced for "ListLinks", in order to
provide the ability to create a new "ListLinks" instance, and provide
simplicity for the examples.

If there exists a convenient and proper way to handle the return type
of "ListLinks::new()", e.g. "ListLinks::try_pin_init()" , then the
method won't be needed.

I Hsin Cheng (2):
rust: list: Implement normal initializer for ListLinks
rust: list: Add examples for linked list

rust/kernel/list.rs | 100 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 100 insertions(+)

--
2.43.0