#automatic #derive #methods #python #display #dunder #debugging

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

#2225 in Rust patterns

Download history 132/week @ 2024-06-19 235/week @ 2024-06-26 240/week @ 2024-07-03 189/week @ 2024-07-10 976/week @ 2024-07-17 421/week @ 2024-07-24 75/week @ 2024-07-31 633/week @ 2024-08-07 397/week @ 2024-08-14 535/week @ 2024-08-21 716/week @ 2024-08-28 612/week @ 2024-09-04 539/week @ 2024-09-11

2,432 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