3 ms·
Rust implements interface inheritance out of the box via traits, but you can also replicate something very much like implementation inheritance via phantom type
by zozbot234 3y ago
Rust implements interface inheritance out of the box via traits, but you can also replicate something very much like implementation inheritance via phantom types/the typestate pattern. It just finds very little use in general, because it's readily apparent just how clunky that whole arrangement is.