Open Plecra opened 4 years ago
Yeah, I think that this is not the only example.
@dtolnay, once told me that round-tripping wasn't all that useful in practice.
@Plecra, what is your motivation for requiring this?
Any communication between users of this crate would require the data to properly round trip through the serialised format. That might be saving a collection to disk, or sending a packet over the network.
It's also a big factor in usability - the user might be interacting with some API that has a Bar
type in their data model, and if you can't rely on serialisation and deserialisation behaving the same way, you'd need to write two definitions of the same type.
...is what I would've said, but it seems so obvious to me that there might be some reason it doesn't apply here?
@Plecra, I agree with you.
Here's a minimal example: