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

I Hsin Cheng posted 2 patches 11 months ago
There is a newer version of this series
rust/kernel/list.rs | 100 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 100 insertions(+)
[RFC PATCH 0/2] rust: list: Add examples for linked list
Posted by I Hsin Cheng 11 months ago
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