Skip to main content

pyo3_ffi/
pytypedefs.rs

1// NB: unlike C, we do not need to forward declare structs in Rust.
2// So we only define opaque structs for those which do not have public structure.
3
4// PyModuleDef
5// PyModuleDef_Slot
6// PyMethodDef
7// PyGetSetDef
8// PyMemberDef
9
10// PyObject
11// PyLongObject
12// PyTypeObject
13opaque_struct!(pub PyCodeObject);
14opaque_struct!(pub PyFrameObject);
15
16opaque_struct!(pub PyThreadState);
17opaque_struct!(pub PyInterpreterState);