rust-unofficial / too-many-lists

Learn Rust by writing Entirely Too Many linked lists
https://rust-unofficial.github.io/too-many-lists/
MIT License
3.22k stars 281 forks source link

2.1 Option in place of Link #226

Closed karakoz closed 2 years ago

karakoz commented 2 years ago

Is it ok to use Option<Box<Node>> in place of Link? Like so:


type Link = Option<Box<Node>>;