Add Encode
/Decode
/BorrowDecode
constraints for struct generic type parameters in derive macro's outputs
#451
Labels
Milestone
For example:
The current macro needs the type parameter
T
beT: Encode
. But in Rust, the latter one is more common.I think most of derive macros in Rust ecosystem like
serde::Serialize
do the latter way.So it's better for users when bincode's derive macros do it so.
The text was updated successfully, but these errors were encountered: