Question for @rustlang folks: is it impossible to use pub(crate) to emulate abstract classes? I've used facade modules successfully for it.
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.
-
-
But the inner module is pub?
-
Sorry, the inner module is not pub, the trait inside it is.
- 19 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.
