mirror of
https://github.com/Lokathor/bytemuck.git
synced 2024-11-25 00:02:22 +00:00
improve docs
This commit is contained in:
parent
1f265a9e0d
commit
fda9e9f852
@ -9,6 +9,8 @@ unsafe impl<T: PodInOption> Pod for Option<T> {}
|
||||
/// ## Safety
|
||||
///
|
||||
/// * `Option<T>` must uphold the same invariants as [Pod](Pod).
|
||||
/// * **Reminder:** pointers are **not** pod! **Do not** mix this trait with a
|
||||
/// newtype over [NonNull](core::ptr::NonNull).
|
||||
pub unsafe trait PodInOption: ZeroableInOption + Copy + 'static {}
|
||||
|
||||
unsafe impl PodInOption for NonZeroI8 {}
|
||||
|
Loading…
Reference in New Issue
Block a user