Re: [PATCH RFC 01/11] rust: types: Add Opaque::zeroed()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Asahi Lina <lina@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxx>

LGTM. This is useful on its own.

Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>




[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux