|
|
|
|
|
by estebank
1881 days ago
|
|
Beyond some small changes I would make to use new-types all over the place, I personally like to rely on Deref impls to mimic inheritance (although not everyone agrees this is a good idea to do too often): https://play.rust-lang.org/?version=stable&mode=debug&editio... As you can see I also used a macro by example there to remove some of the duplicated code that you would otherwise have. |
|