#automatic #python #methods #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

#2164 in Rust patterns

Download history 561/week @ 2024-07-22 142/week @ 2024-07-29 291/week @ 2024-08-05 528/week @ 2024-08-12 453/week @ 2024-08-19 1055/week @ 2024-08-26 30/week @ 2024-09-02 922/week @ 2024-09-09 454/week @ 2024-09-16 336/week @ 2024-09-23 1/week @ 2024-10-07

587 downloads per month

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