Conversation
|
honestly, after having passed way to much time on this, i think its just not possible. But,
So we are cooked. I wonder if a language succeed to do this. Maybe i can be proven wrong. I think we just need another method on fn enum_type(&self) -> Option<EnumType>;
enum EnumType {
Unit,
NewType,
Tuple,
Struct
} |
|
Thank you for exploring it further @wiiznokes! I personally think that many improvements are still blocked on serde, perhaps we can come back to this once ron is given more agency in deserialising data without type information |
|
Another solution could be to not implement |
previous pr: #553
todo:
handle_any_structvisit_enumSerializeforValueCHANGELOG.md