Closed adamreichold closed 1 year ago
Using #[repr(C)] was necessary when it had multiple fields so that the Deref implementation from PyReadwriteArray to PyReadonlyArray is sound.
#[repr(C)]
Deref
PyReadwriteArray
PyReadonlyArray
Using
#[repr(C)]
was necessary when it had multiple fields so that theDeref
implementation fromPyReadwriteArray
toPyReadonlyArray
is sound.