Attribute Macros

  • This procedural macro attribute is used to wrap an implementation block with PyO3-compatible methods. It processes each method in the implementation block, wraps it with PyO3-compatible code, and adds necessary attributes. This macro is only available when the “multiple_pymethod” feature is enabled and relies on the same feature in PyO3.