pyo3

Macro pyobject_native_type

Source
macro_rules! pyobject_native_type {
    ($name:ty, $layout:path, $typeobject:expr $(, #module=$module:expr)? $(, #checkfunction=$checkfunction:path)? $(;$generics:ident)*) => { ... };
}
Expand description

Declares all of the boilerplate for Python types which can be inherited from (because the exact Python layout is known).

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here