Crate pyo3_special_method_derive_lib

Source
Expand description

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.

Macros§

pydebug_pydisplay
Use this trait to automatically derive PyDebug and PyDisplay for your type. It uses the Debug and Display traits internally. Because this usage can expose Rust semantics, types, or otherwise look foreign, this should only be used for types which are simple enough to not be distinctly Rust-y.

Statics§

ELLIPSIS_CHAR_N
Number of characters to display for each implementation in this crate, defaults to 100. May be a few chars above or below.

Traits§

PyDebug
Types which can be displayed into the __repr__ implementation.
PyDisplay
Types which can be displayed into the __str__ implementation.