3 ms·
Whats most impressive for me is that making completely safe, effortlessly mutable and flexible linked list in Rust (or any other similar structure) can be as si
by scotty79 4y ago
Whats most impressive for me is that making completely safe, effortlessly mutable and flexible linked list in Rust (or any other similar structure) can be as simple as:
struct LinkedListNode {
data: i32,
next: Pointer<LinkedListNode>
}
You still need to care about memory leaks through structs linking to each other though because Rc means "reference counted".