-
Notifications
You must be signed in to change notification settings - Fork 18
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
Allow pilota.rust_type
annotation work on container type
#125
Comments
是否可以在这两种方案中选择一个解决: |
@liuxin231 如果你需要用 String,直接 to_string 就好了? |
@PureWhiteWu 我理解的这个问题是在生成代码时使用了FastStr,而不是std中的String,这样导致自定义添加一些注解时无法工作,不知道是不是这样? |
不是,这个只是一个例子,这个 issue 要讨论的内容是说,目前我们没有一个很好的方案给 container type 里面的元素加注解。 |
类似这种? |
@liuxin231 不是的,主要还是指通过不同的注解,让它可以作用到容器里面的类型。比如 pilota.rust_type_container |
Feature Request
Motivation
Right now in pilota, when I wrote like this:
It will generate:
And there is no other way to generate code like followings as
pilota.rust_type
annotation cannot work on container type.The text was updated successfully, but these errors were encountered: