6

Github Added #[repr(transparent)] to core::cmp::Reverse by imbrem · Pull Request...

 3 years ago
source link: https://github.com/rust-lang/rust/pull/81879
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.

Copy link

Contributor

imbrem commented on Feb 8

I found casting from an &T to an &Reverse<T> potentially useful, but found that Reverse was not #[repr(transparent)], so after asking about it on Reddit, I decided to go ahead and make a pull request which simply adds the attribute to the struct.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK