New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make (vec) conversions more general #101
Comments
Proof of concept:
|
This makes perfect sense. I'll try to sneak it in on Sunday. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Specifically, it seems like
JsonValue
should implement:impl From<Vec<T>> for JsonValue where T: Into<JsonValue>
, or something along those lines. The goal would be to implement a new type, doimpl From<MyType> for JsonValue
, and be able to convert aVec<MyType>
toJsonValue
automatically.There may be analogous conversions possible for containers other than Vec, I can't think of any specific ones right now though.
The text was updated successfully, but these errors were encountered: