-
Notifications
You must be signed in to change notification settings - Fork 17
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
Only translate trait method when used #487
Comments
I agree with this. Just a small request: it would be good to have an option to switch between the two behaviors (but this is probably what you had in mind). |
I intend this to be part of the normal crate exploration behavior, therefore if you want to include all iterator methods and bodies you can use |
I often use the current behavior to generate models for the backends: it's an easy of getting the trait declaration, method declarations and instance declarations for free. I'm perfectly fine if what you suggest becomes the new default behavior, but it would be good if we could use an option to re-activate the current behavior (should be simple right?). |
When generating models you can just |
Following an offline discussion: the best solution so far is to have options which are actually sugar for |
Currently, whenever we translate a trait like
Iterator
, we translate the signature of its many dozen methods. We could instead start each trait without any methods and only translate each method when we encounter it in the code.The text was updated successfully, but these errors were encountered: