-
Notifications
You must be signed in to change notification settings - Fork 30
Don't erase Box
types
#82
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
base: master
Are you sure you want to change the base?
Conversation
Do you think we should do the same for other smart pointer types, |
We definitely do need them to be properly serialized. This is where there might be different use cases though since it won't make a lot of sense to do this in other contexts such as Javascript UIs. |
Maybe we could use the |
I think we should wait until we need them so we have a clear use case in front of us. |
Updated and marked ready for review. I'm happy with this solution for |
I think we want a clearly defined |
What do you think about a middle ground solution where we introduce this |
For rust type generators we need to know if a type is a
Box
in order to generate e.g. valid non self-referential types. This can be done either by defining a custom composite type as I have done here, or maybe as a special caseTypeDef
enum variant.