Skip to content
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

How do I call the procedural version of vec? #28

Open
kpp opened this issue Jan 18, 2019 · 1 comment
Open

How do I call the procedural version of vec? #28

kpp opened this issue Jan 18, 2019 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@kpp
Copy link

kpp commented Jan 18, 2019

pub fn vec(input: TokenStream) -> TokenStream {

There is an example how to write it, but there is no example how to call it in the code.

@nrc nrc added the help wanted Extra attention is needed label Jan 18, 2019
@nrc
Copy link
Owner

nrc commented Jan 18, 2019

exactly the same way as the macro_rules version, but you will need to enable a feature (proc_macro_hygiene or something similar) and import the macro.

Would be good to document this, I suppose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants