Question for @rustlang folks: is it impossible to use pub(crate) to emulate abstract classes? I've used facade modules successfully for it.
Put the private super trait in an inner pub module that doesn't get re-exported. https://github.com/carllerche/http/blob/master/src/header/map.rs#L3111 …
-
-
Doesn't this mean a whole dup hierarchy? That's what I've been doing and I was hoping I didn't have to. 2x the # of modules is

-
Nothing should be duplicated. The http crate might seem complicated, but can just put your Sealed trait in an inner module, and that's it.
- 21 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.