#python #methods #automatic #derive #macro-derive #dunder #traits

pyo3_special_method_derive_lib

Automatically derive Python dunder methods for your Rust code

5 releases

0.3.1 Jul 19, 2024
0.3.0 Jun 25, 2024
0.2.4 Jun 25, 2024
0.2.3 Jun 25, 2024
0.2.2 Jun 25, 2024

#2358 in Rust patterns

MIT license

9KB
228 lines

pyo3-special-method-derive-lib

This crate provides traits necessary for pyo3-special-method-derive.

This crate exports 2 traits which should be implemented for every type for which its field or variant is not skipped.

It also exports a macro to use the Debug and Display traits to generate a PyDebug and PyDisplay implementation.


lib.rs:

This crate exports 2 traits which should be implemented for every type for which its field or variant is not skipped.

It also exports a macro to use the Debug and Display traits to generate a PyDebug and PyDisplay implementation.

No runtime deps