We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a5844b commit 4633ef9Copy full SHA for 4633ef9
src/npyffi/objects.rs
@@ -549,6 +549,19 @@ pub struct PyArray_DatetimeDTypeMetaData {
549
// https://github.com/rust-lang/rust/issues/43467
550
pub type npy_packed_static_string = c_void;
551
pub type npy_string_allocator = c_void;
552
+
553
+#[cfg(not(Py_LIMITED_API))]
554
+#[repr(C)]
555
+pub struct PyArray_DTypeMeta {
556
+ pub superclass: PyHeapTypeObject,
557
+ pub singleton: *mut PyArray_Descr,
558
+ pub scalar_type: *mut PyTypeObject,
559
+ pub flags: npy_uint64,
560
+ pub dt_slots: *mut c_void,
561
+ pub reserved: [*mut c_void; 3],
562
+}
563
564
+#[cfg(Py_LIMITED_API)]
565
pub type PyArray_DTypeMeta = PyTypeObject;
566
567
#[repr(C)]
0 commit comments