| Date | Fri, 14 Jul 2023 10:15:01 +0000 | Subject | Re: [PATCH RFC 01/11] rust: types: Add Opaque::zeroed() | From | Alice Ryhl <> |
| |
Asahi Lina <lina@asahilina.net> writes: > Opaque types are internally MaybeUninit, so it's safe to actually > zero-initialize them as long as we don't claim they are initialized. > This is useful for many FFI types that are expected to be zero-inited by > the user. > > Signed-off-by: Asahi Lina <lina@asahilina.net>
LGTM. This is useful on its own.
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
|