8

impl Default, Copy, Clone for std::io::Sink and Empty by ijackson · Pull Request...

 3 years ago
source link: https://github.com/rust-lang/rust/pull/86744
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Copy link

Contributor

ijackson commented on Jun 30

The omission of Sink: Default is causing me a slight inconvenience in a test harness. There seems little reason for this and Empty not to be Clone and Copy too.

I have made all three of these insta-stable, because:

AIUI Copy can only be derived, and I was not able to find any examples of how to unstably derive it. I think it is probably not possible.

I hunted through the git history for precedent and found

79b8ad8
Implement Copy for IoSlice
#69403

which was also insta-stable.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK