2 ms·
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
by estebank 6y 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&edition=2015&gist=dad45d73a87808ea56ad607bacd5a76a 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.