-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conform to the recommended pattern for sealed traits #1194
Comments
There may have been a misunderstanding of the usage of this trait. The The |
You are right. I misunderstood these traits. To tease this apart:
How would you feel about these changes?
I like this because now Also now rustdoc can show the |
This has been done, and and is viewable in https://docs.rs/hyper/0.10.12. |
The header module contains these two traits:
As discussed in the libz blitz evaluation, we would like a recognizable pattern for sealed traits that are impossible to implement outside of the current crate. We would like this pattern to be independent of whether certain functionality on a trait is a doc(hidden) implementation detail.
As such, we would like to:
clone_box
(which is an implementation detail not relevant to users of hyper) from HeaderClone into a doc(hidden) method in HeaderHeaderClone
toSealed
Header
that this trait is sealed and designed to be implemented only within the hyper codebaseThe text was updated successfully, but these errors were encountered: