-
Notifications
You must be signed in to change notification settings - Fork 10
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
support derive macro for types with non-static lifetimes #53
Comments
for some reason, i cannot implement the TypeBody for types with lifetimes. rust complains that it needs a |
If i remember correctly, the macro quickly gets complex once generics of any kind get involved, which is why I haven't done it myself. I'll gladly accept pr's that make it work though. I'll see what I can do about the typebody needing a static lifetime. Probably just wrote a weird lifetime myself. However, are you sure you actually need a non static in this case? Type body is only used to generate the .d.tl file and documentation and doesn't even require an instance of the type |
you are right! i was able to implement I will just implement the Traits manually for now. |
I have a bunch of types like
Window<'open>
orUi(&mut egui::Ui)
etc.. and i would like to useMluTealrDerive
on them.but i keep getting lifetime errors. i can manually write the impls ofcourse, was just wondering if it would be possible to just make the macro support for types with lifetimes.
The text was updated successfully, but these errors were encountered: