From 40cb0d19c34f71a78327a7e0908f2f1da09f1048 Mon Sep 17 00:00:00 2001 From: Lokathor Date: Fri, 20 Sep 2019 11:12:40 -0600 Subject: [PATCH] comments --- src/pod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pod.rs b/src/pod.rs index 903c901..41859e4 100644 --- a/src/pod.rs +++ b/src/pod.rs @@ -18,8 +18,8 @@ use super::*; /// [Infallible](core::convert::Infallible)). /// * The type must allow any bit pattern (eg: no `bool` or `char`). /// * The type must not contain any padding bytes (eg: no `(u8, u16)`). -/// * A struct needs to be `repr(C)`, `repr(transparent)` wrapper around a -/// `Pod` type, or `repr(packed)` with all fields as `Pod` types. +/// * A struct needs to have all fields be `Pod` and be `repr(C)`, +/// `repr(transparent)`, or `repr(packed)`. pub unsafe trait Pod: Zeroable + Copy + 'static {} unsafe impl Pod for () {}