-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Add an ability to use smart pointers for source #341
Comments
I did not realize that this feature is there, we need docs for proc macros. But it's expecting type to be something that we put behind a reference, which is not the case with |
#[logos(source="Rc<str>")]
doesn't work, puts it behind a reference
#[logos(source="Rc<str>")]
doesn't work, puts it behind a reference
Hello @InfiniteCoder01, could you provide an example code showcasing a basic use case? |
Example of this that I can think of is quite complex, but here it is: |
For now, we can use a workaround:
|
Can't you just deref Arc to &T? and use &T as the source? |
This might be useful for #159, #324 and #340.
I don't know anything about proc-macros in rust, but I'll try to implement it.
The text was updated successfully, but these errors were encountered: