rust - 是否有标准属性的详尽列表?

标签 rust

我正在寻找 attributes 的详尽列表默认情况下可用:没有启用任何外部 crate 或实验性功能。

是否存在这样的列表?

最佳答案

是的,Rust reference包含属性列表(尽管它可能不是最新的)。

引自Rust book section on attributes你链接:

There is a full list of attributes in the reference. Currently, you are not allowed to create your own attributes, the Rust compiler defines them.

关于rust - 是否有标准属性的详尽列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37900513/

相关文章:

rust - 我可以在稳定的 Rust 上使用编译器插件吗?

module - 在单独的文件中定义特征

Rust 特征别名

rust - 如何将字符串转换为 &'static str

rust - 如何分辨每个 crate 可使用哪些 "features"?

sorting - 为什么我的 InsertionSort 的 Rust 实现比我的 C 版本慢?

opengl - 在 OpenGL 中显示代码生成的纹理

rust - 在可变选项内的值上调用方法

rust - `pub` 是表示 public-to-crate 还是 public-to-module?

rust - 使用 Hyper 发出请求时如何设置 User-Agent header ?