mirror of
https://github.com/Lokathor/bytemuck.git
synced 2024-10-29 21:30:48 +00:00
nightly_docs for transparent_wrapper_extra
This commit is contained in:
parent
bc9b93a8ee
commit
ee64218b73
@ -304,6 +304,10 @@ pub unsafe trait TransparentWrapper<Inner: ?Sized> {
|
||||
|
||||
unsafe impl<T> TransparentWrapper<T> for core::num::Wrapping<T> {}
|
||||
#[cfg(feature = "transparentwrapper_extra")]
|
||||
#[cfg_attr(
|
||||
feature = "nightly_docs",
|
||||
doc(cfg(feature = "transparentwrapper_extra"))
|
||||
)]
|
||||
unsafe impl<T> TransparentWrapper<T> for core::num::Saturating<T> {}
|
||||
|
||||
// Note that `Reverse` existed since Rust 1.19.0, but was only made `#[repr(transparent)]`
|
||||
@ -311,4 +315,8 @@ unsafe impl<T> TransparentWrapper<T> for core::num::Saturating<T> {}
|
||||
// the same feature as `Saturating`, which was stabilized in Rust 1.74.0, so that this
|
||||
// impl cannot be used on a version before 1.52.0 where it would be unsound.
|
||||
#[cfg(feature = "transparentwrapper_extra")]
|
||||
#[cfg_attr(
|
||||
feature = "nightly_docs",
|
||||
doc(cfg(feature = "transparentwrapper_extra"))
|
||||
)]
|
||||
unsafe impl<T> TransparentWrapper<T> for core::cmp::Reverse<T> {}
|
||||
|
Loading…
Reference in New Issue
Block a user