From fda9e9f8526325bb8188a8e0aa5271b45d442837 Mon Sep 17 00:00:00 2001 From: Lokathor Date: Sat, 2 Jul 2022 15:29:48 -0600 Subject: [PATCH] improve docs --- src/pod_in_option.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pod_in_option.rs b/src/pod_in_option.rs index 5797203..3327e99 100644 --- a/src/pod_in_option.rs +++ b/src/pod_in_option.rs @@ -9,6 +9,8 @@ unsafe impl Pod for Option {} /// ## Safety /// /// * `Option` 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 {}